Редагувати

Поділитися через


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);
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
[<System.Security.SecurityCritical>]
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

The message to process.

replySink
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.

Attributes

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.

Applies to