public Client(ChannelEntryPoints entry) { entryPoints = entry; channelInitEventDelegate = VirtualChannelInitEventProc; channelOpenEventDelegate = VirtualChannelOpenEvent; Streams = new Dictionary <int, Stream>(); Listeners = new Dictionary <int, TcpListener>(); }
public RdpClientVirtualChannel(string channelName) { _channelName = channelName; if (channelName.Length > 7) { throw new VirtualChannelException(String.Format("TsClientAddIn ({0}): Please choose a name for channelName that is 7 or fewer characters.", _channelName)); } _channelInitEventDelegate = new ChannelInitEventDelegate(VirtualChannelInitEventProc); _channelOpenEventDelegate = new ChannelOpenEventDelegate(VirtualChannelOpenEvent); }