mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-06 23:15:16 +00:00
style: more consistent naming removing underscores
There were less places with underscores in field names than places without them, so we now are consistent with the most abundant occurrence.
This commit is contained in:
parent
c031fa4f6d
commit
90f9305dd6
8 changed files with 96 additions and 97 deletions
|
|
@ -10,11 +10,11 @@ namespace TLSharp.Core.Network
|
|||
private int timeOffset;
|
||||
private long lastMessageId;
|
||||
private Random random;
|
||||
private TcpTransport _transport;
|
||||
private TcpTransport transport;
|
||||
|
||||
public MtProtoPlainSender(TcpTransport transport)
|
||||
{
|
||||
_transport = transport;
|
||||
this.transport = transport;
|
||||
random = new Random();
|
||||
}
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ namespace TLSharp.Core.Network
|
|||
|
||||
byte[] packet = memoryStream.ToArray();
|
||||
|
||||
await _transport.Send(packet, token).ConfigureAwait(false);
|
||||
await transport.Send(packet, token).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -42,7 +42,7 @@ namespace TLSharp.Core.Network
|
|||
{
|
||||
token.ThrowIfCancellationRequested();
|
||||
|
||||
var result = await _transport.Receive(token).ConfigureAwait(false);
|
||||
var result = await transport.Receive(token).ConfigureAwait(false);
|
||||
|
||||
using (var memoryStream = new MemoryStream(result.Body))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue