System.Runtime.Remoting.Channels.IChannelSender Interface

Assembly: Mscorlib.dll
Namespace: System.Runtime.Remoting.Channels
Summary
Provides required functions and properties for the sender channels.
C# Syntax:
public interface IChannelSender : IChannel
Remarks
The sending side of channels must expose the IChannelSender interface.
See also:
System.Runtime.Remoting.Channels Namespace

System.Runtime.Remoting.Channels.IChannelSender Member List:

Public Methods
CreateMessageSink Returns a channel message sink that delivers messages to the specified URL or channel data object.

Hierarchy:


System.Runtime.Remoting.Channels.IChannelSender Member Details

Method: CreateMessageSink(
   string url,
   object remoteChannelData,
   out string objectURI
)
Summary
Returns a channel message sink that delivers messages to the specified URL or channel data object.
C# Syntax:
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.
Remarks
The IChannelSender.CreateMessageSink method returns a channel message sink that delivers messages to either the specified URL or the channel data object. If the uri parameter is null, the remoteChannelData parameter is used as a target for the sink. Either the url parameter or the remoteChannelData parameter can be null, but not both.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.