/// <summary> /// Initializes a new instance of the <see cref="ServerSession"/> class. /// </summary> public ServerSession(IPacketCodeTable packetCodeTable) { NetworkSessionId = RollingNetworkSessionId.Increment(); _isPushing = false; _packets = new ConcurrentQueue <byte[]>(); _packetCodeTable = packetCodeTable; PacketReceived += HandlePacketReceived; }
/// <summary> /// Initializes a new instance of the <see cref="ServerSession"/> class. /// </summary> public ServerSession(IPacketCodeTable packetCodeTable) { this.NetworkSessionId = RollingNetworkSessionId.Increment(); this.isPushing = false; this.packets = new ConcurrentQueue<byte[]>(); this.packetCodeTable = packetCodeTable; this.PacketReceived += this.HandlePacketReceived; }
public PacketFactory(IPacketCodeTable packets) { this.packets = packets; }
public PacketFactory(IPacketCodeTable packets) { _packets = packets; }