Core(MtProtoSender): mark immutable fields as readonly

To make sure they are kept immutable when upcoming
devs make changes to this file.
This commit is contained in:
Andres G. Aragoneses 2018-03-05 03:50:09 +08:00
parent e6250b1234
commit bd7f5f09eb

View file

@ -18,10 +18,10 @@ namespace TLSharp.Core.Network
{
//private ulong sessionId = GenerateRandomUlong();
private TcpTransport _transport;
private Session _session;
private readonly TcpTransport _transport;
private readonly Session _session;
public List<ulong> needConfirmation = new List<ulong>();
public readonly List<ulong> needConfirmation = new List<ulong>();
public MtProtoSender(TcpTransport transport, Session session)
{