Returns a channel message sink that delivers messages to the specified URL or channel data object.
Declaring type: TcpExChannel
Namespace: Zyan.Communication.Protocols.Tcp.DuplexChannel
Assembly: Zyan.Communication
Collapse/Expand Syntax
C#
public IMessageSink CreateMessageSink (
        string url,
        object remoteChannelData,
        out string objectURI
) 
Parameters
url
The URL to which the new sink will deliver messages. Can be null.
remoteChannelData
The channel data object of the remote host to which the new sink will deliver messages. Can be null.
objectURI
When this method returns, contains a URI of the new channel message sink that delivers messages to the specified URL or channel data object. This parameter is passed uninitialized.
Return Value
A channel message sink that delivers messages to the specified URL or channel data object, or null if the channel cannot connect to the given endpoint.
Collapse/Expand Exceptions
Exception type Condition
SecurityException The immediate caller does not have infrastructure permission.