IMessageSink.AsyncProcessMessage(IMessage, IMessageSink) IMessageSink.AsyncProcessMessage(IMessage, IMessageSink) IMessageSink.AsyncProcessMessage(IMessage, IMessageSink) IMessageSink.AsyncProcessMessage(IMessage, IMessageSink) Method

Definition

Asynchronously processes the given message.

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

Parameters

msg
IMessage IMessage IMessage IMessage

The message to process.

replySink
IMessageSink IMessageSink IMessageSink IMessageSink

The reply sink for the reply message.

Returns

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

Exceptions

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

Remarks

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

Security

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

Applies to