ChannelServices.DispatchMessage Método

Definição

Despacha 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 enviada.

replyMsg
IMessage

Quando esse método é retornado, contém um IMessage que contém a resposta do servidor para a mensagem contida no msg parâmetro. Esse parâmetro é passado sem inicialização.

Retornos

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

Atributos

Exceções

O msg parâmetro é 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