System.Runtime.Remoting.Channels.IClientChannelSinkProvider.CreateSink Method

Creates a sink chain.

Syntax

public IClientChannelSink CreateSink (IChannelSender channel, string url, object remoteChannelData)

Parameters

channel
Channel for which the current sink chain is being constructed.
url
The URL of the object to connect to. This parameter can be null if the connection is based entirely on the information contained in the remoteChannelData parameter.
remoteChannelData
A channel data object that describes a channel on the remote server.

Returns

The first sink of the newly formed channel sink chain, or null, which indicates that this provider will not or cannot provide a connection for this endpoint.

Remarks

When the IClientChannelSinkProvider.CreateSink(IChannelSender, string, object) method is called, it creates its own channel sink, forwards the IClientChannelSinkProvider.CreateSink(IChannelSender, string, object) call to the next sink provider in the chain (if there is one), and ensures that the next sink and the current one are linked together.

Requirements

Namespace: System.Runtime.Remoting.Channels
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0