ChannelServices.DispatchMessage Method

Definition

Dispatches incoming remote calls.

public:
 static System::Runtime::Remoting::Channels::ServerProcessing DispatchMessage(System::Runtime::Remoting::Channels::IServerChannelSinkStack ^ sinkStack, System::Runtime::Remoting::Messaging::IMessage ^ msg, [Runtime::InteropServices::Out] System::Runtime::Remoting::Messaging::IMessage ^ % replyMsg);
public static System.Runtime.Remoting.Channels.ServerProcessing DispatchMessage (System.Runtime.Remoting.Channels.IServerChannelSinkStack sinkStack, System.Runtime.Remoting.Messaging.IMessage msg, out System.Runtime.Remoting.Messaging.IMessage replyMsg);
[System.Security.SecurityCritical]
public static System.Runtime.Remoting.Channels.ServerProcessing DispatchMessage (System.Runtime.Remoting.Channels.IServerChannelSinkStack sinkStack, System.Runtime.Remoting.Messaging.IMessage msg, out System.Runtime.Remoting.Messaging.IMessage replyMsg);
static member DispatchMessage : System.Runtime.Remoting.Channels.IServerChannelSinkStack * System.Runtime.Remoting.Messaging.IMessage * IMessage -> System.Runtime.Remoting.Channels.ServerProcessing
[<System.Security.SecurityCritical>]
static member DispatchMessage : System.Runtime.Remoting.Channels.IServerChannelSinkStack * System.Runtime.Remoting.Messaging.IMessage * IMessage -> System.Runtime.Remoting.Channels.ServerProcessing
Public Shared Function DispatchMessage (sinkStack As IServerChannelSinkStack, msg As IMessage, ByRef replyMsg As IMessage) As ServerProcessing

Parameters

sinkStack
IServerChannelSinkStack

The stack of server channel sinks that the message already traversed.

msg
IMessage

The message to dispatch.

replyMsg
IMessage

When this method returns, contains a IMessage that holds the reply from the server to the message that is contained in the msg parameter. This parameter is passed uninitialized.

Returns

A ServerProcessing that gives the status of the server message processing.

Attributes

Exceptions

The msg parameter is null.

The immediate caller does not have infrastructure permission.

Remarks

This method is used by channels to dispatch incoming remote calls.

Applies to