public RdpedycServer(RdpbcgrServer server, RdpbcgrServerSessionContext context, bool autoCloseChannel = true)
{
this.rdpbcgrServer = server;
this.sessionContext = context;
transportDic = new Dictionary<DynamicVC_TransportType, IDVCTransport>();
unprocessedDVCPacketBuffer = new List<UnprocessedDVCPDUInfo>();
Rdpbcgr_DVCServerTransport transport = new Rdpbcgr_DVCServerTransport(context);
channelDicbyId = new Dictionary<uint, DynamicVirtualChannel>();
pduBuilder = new PduBuilder();
transport.Received += ProcessPacketFromTCP;
transportDic.Add(DynamicVC_TransportType.RDP_TCP, transport);
this.autoCloseChannel = autoCloseChannel;
}