ChannelServices.DispatchMessage Método

Definição

Expede as chamadas remotas de entrada.

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

Parâmetros

sinkStack
IServerChannelSinkStack

A pilha de coletores de canal do servidor que a mensagem já percorreu.

msg
IMessage

A mensagem a ser expedida.

replyMsg
IMessage

Quando este método retorna, ele contém um IMessage que contém a resposta do servidor para a mensagem que está contida no parâmetro msg. Este parâmetro é passado não inicializado.

Retornos

Um ServerProcessing que fornece o status do processamento de mensagem de servidor.

Atributos

Exceções

O parâmetro msg é null.

O chamador imediato não tem permissão de infraestrutura.

Comentários

Esse método é usado por canais para expedir chamadas remotas de entrada.

Aplica-se a