Edit

Share via


ChannelServices.AsyncDispatchMessage(IMessage, IMessageSink) Method

Definition

Asynchronously dispatches the given message to the server-side chain(s) based on the URI embedded in the message.

public:
 static System::Runtime::Remoting::Messaging::IMessageCtrl ^ AsyncDispatchMessage(System::Runtime::Remoting::Messaging::IMessage ^ msg, System::Runtime::Remoting::Messaging::IMessageSink ^ replySink);
public static System.Runtime.Remoting.Messaging.IMessageCtrl AsyncDispatchMessage (System.Runtime.Remoting.Messaging.IMessage msg, System.Runtime.Remoting.Messaging.IMessageSink replySink);
[System.Security.SecurityCritical]
public static System.Runtime.Remoting.Messaging.IMessageCtrl AsyncDispatchMessage (System.Runtime.Remoting.Messaging.IMessage msg, System.Runtime.Remoting.Messaging.IMessageSink replySink);
static member AsyncDispatchMessage : System.Runtime.Remoting.Messaging.IMessage * System.Runtime.Remoting.Messaging.IMessageSink -> System.Runtime.Remoting.Messaging.IMessageCtrl
[<System.Security.SecurityCritical>]
static member AsyncDispatchMessage : System.Runtime.Remoting.Messaging.IMessage * System.Runtime.Remoting.Messaging.IMessageSink -> System.Runtime.Remoting.Messaging.IMessageCtrl
Public Shared Function AsyncDispatchMessage (msg As IMessage, replySink As IMessageSink) As IMessageCtrl

Parameters

msg
IMessage

The message to dispatch.

replySink
IMessageSink

The sink that will process the return message if it is not null.

Returns

A IMessageCtrl object used to control the asynchronously dispatched message.

Attributes

Exceptions

The msg parameter is null.

The immediate caller does not have infrastructure permission.

Remarks

The current method returns immediately, whether the server processed the specified message or not.

Applies to