System.Runtime.Remoting.Channels.BinaryClientFormatterSinkProvider.CreateSink C# (CSharp) Method

CreateSink() private method

private CreateSink ( IChannelSender channel, String url, Object remoteChannelData ) : IClientChannelSink
channel IChannelSender
url String
remoteChannelData Object
return IClientChannelSink
        public IClientChannelSink CreateSink(IChannelSender channel, String url, 
                                             Object remoteChannelData)
        {
            IClientChannelSink nextSink = null;
            if (_next != null)
            {
                nextSink = _next.CreateSink(channel, url, remoteChannelData);
                if (nextSink == null)
                    return null;
            }

            SinkChannelProtocol protocol = CoreChannel.DetermineChannelProtocol(channel);

            BinaryClientFormatterSink sink = new BinaryClientFormatterSink(nextSink);
            sink.IncludeVersioning = _includeVersioning;
            sink.StrictBinding = _strictBinding;
            sink.ChannelProtocol = protocol;
            return sink;
        } // CreateSink
BinaryClientFormatterSinkProvider