/// <summary> /// Constructor /// </summary> /// <param name="context"></param> /// <param name="autoCreateChannel"></param> /// <param name="callBackMethodsDic"></param> public RdpedycClient(RdpbcgrClientContext context, bool autoCreateChannel = true) { this.clientSessionContext = context; transportDic = new Dictionary <DynamicVC_TransportType, IDVCTransport>(); unprocessedDVCPacketBuffer = new List <UnprocessedDVCPDUInfo>(); Rdpbcgr_DVCClientTransport transport = new Rdpbcgr_DVCClientTransport(context); channelDicbyId = new Dictionary <uint, DynamicVirtualChannel>(); this.autoCreateChannel = autoCreateChannel; pduBuilder = new PduBuilder(); transport.Received += ProcessPacketFromTCP; transportDic.Add(DynamicVC_TransportType.RDP_TCP, transport); }
/// <summary> /// Constructor /// </summary> /// <param name="client"></param> /// <param name="context"></param> /// <param name="autoCreateChannel"></param> /// <param name="callBackMethodsDic"></param> public RdpedycClient(RdpbcgrClient client, RdpbcgrClientContext context, bool autoCreateChannel = true, Dictionary<string, ReceiveData> callBackMethodsDic = null) { this.rdpbcgrClient = client; this.clientSessionContext = context; transportDic = new Dictionary<DynamicVC_TransportType, IDVCTransport>(); unprocessedDVCPacketBuffer = new List<UnprocessedDVCPDUInfo>(); Rdpbcgr_DVCClientTransport transport = new Rdpbcgr_DVCClientTransport(context); channelDicbyId = new Dictionary<uint, DynamicVirtualChannel>(); this.autoCreateChannel = autoCreateChannel; this.callBackMethodsDic = callBackMethodsDic; pduBuilder = new PduBuilder(); transport.Received += ProcessPacketFromTCP; transportDic.Add(DynamicVC_TransportType.RDP_TCP, transport); }