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:
Andres G. Aragoneses 2020-01-31 14:39:19 +08:00
parent c031fa4f6d
commit 90f9305dd6
8 changed files with 96 additions and 97 deletions

View file

@ -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))
{