IMessageSink.AsyncProcessMessage Method (IMessage, IMessageSink)

 

Asynchronously processes the given message.

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

[SecurityCriticalAttribute]
IMessageCtrl AsyncProcessMessage(
	IMessage msg,
	IMessageSink replySink
)

Parameters

msg
Type: System.Runtime.Remoting.Messaging.IMessage

The message to process.

replySink
Type: System.Runtime.Remoting.Messaging.IMessageSink

The reply sink for the reply message.

Return Value

Type: System.Runtime.Remoting.Messaging.IMessageCtrl

Returns an IMessageCtrl interface that provides a way to control asynchronous messages after they have been dispatched.

Exception Condition
SecurityException

The immediate caller makes the call through a reference to the interface and does not have infrastructure permission.

This method is invoked on the message sink by the remoting infrastructure or by a previous sink for asynchronous messages.

SecurityPermission

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

.NET Framework
Available since 1.1
Return to top
Show: