public IClientChannelSink CreateSink(IChannelSender channel, string url, object remoteChannelData) { TcpClientTransportSink sink = new TcpClientTransportSink(url, (TcpClientChannel) channel); if (this._prop != null) { foreach (object obj2 in this._prop.Keys) { sink[obj2] = this._prop[obj2]; } } return sink; }
public IClientChannelSink CreateSink(IChannelSender channel, string url, object remoteChannelData) { TcpClientTransportSink sink = new TcpClientTransportSink(url, (TcpClientChannel)channel); if (this._prop != null) { foreach (object obj2 in this._prop.Keys) { sink[obj2] = this._prop[obj2]; } } return(sink); }
public IClientChannelSink CreateSink(IChannelSender channel, String url, Object remoteChannelData) { // url is set to the channel uri in CreateMessageSink TcpClientTransportSink sink = new TcpClientTransportSink(url, (TcpClientChannel)channel); if (_prop != null) { // Tansfer all properties from the channel to the sink foreach (Object key in _prop.Keys) { sink[key] = _prop[key]; } } return(sink); }
public TcpClientSocketHandler(Socket socket, String machinePortAndSid, Stream stream, TcpClientTransportSink sink) : base(socket, stream) { _machinePortAndSid = machinePortAndSid; _sink = sink; } // TcpClientSocketHandler
public IClientChannelSink CreateSink(IChannelSender channel, String url, Object remoteChannelData) { // url is set to the channel uri in CreateMessageSink TcpClientTransportSink sink = new TcpClientTransportSink(url, (TcpClientChannel) channel); if (_prop != null) { // Tansfer all properties from the channel to the sink foreach(Object key in _prop.Keys) { sink[key] = _prop[key]; } } return sink; }