ChannelServices.AsyncDispatchMessage Method (IMessage, IMessageSink)

 

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

Namespace:   System.Runtime.Remoting.Channels
Assembly:  mscorlib (in mscorlib.dll)

<SecurityCriticalAttribute>
Public Shared Function AsyncDispatchMessage (
	msg As IMessage,
	replySink As IMessageSink
) As IMessageCtrl

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.

SecurityPermission

For operating with infrastructure code. Demand value: SecurityAction.LinkDemand; Permission value: SecurityPermissionFlag.Infrastructure

.NET Framework
Available since 1.1
Return to top
Show: