ChannelServices::AsyncDispatchMessage Method (IMessage^, IMessageSink^)
Asynchronously dispatches the given message to the server-side chain(s) based on the URI embedded in the message.
Assembly: mscorlib (in mscorlib.dll)
public: [SecurityCriticalAttribute] static IMessageCtrl^ AsyncDispatchMessage( IMessage^ msg, IMessageSink^ replySink )
Parameters
- msg
-
Type:
System.Runtime.Remoting.Messaging::IMessage^
The message to dispatch.
- replySink
-
Type:
System.Runtime.Remoting.Messaging::IMessageSink^
The sink that will process the return message if it is not null.
Return Value
Type: System.Runtime.Remoting.Messaging::IMessageCtrl^A IMessageCtrl object used to control the asynchronously dispatched message.
| Exception | Condition |
|---|---|
| ArgumentNullException | The msg parameter is null. |
| SecurityException | The immediate caller does not have infrastructure permission. |
The current method returns immediately, whether the server processed the specified message or not.
For operating with infrastructure code. Demand value: SecurityAction::LinkDemand; Permission value: SecurityPermissionFlag::Infrastructure
Available since 1.1