ChannelServices.DispatchMessage Método

Definición

Envía las llamadas 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

Pila de receptores de canales del servidor que el mensaje ya atravesó.

msg
IMessage

Mensaje que se va a enviar.

replyMsg
IMessage

Cuando este método finaliza, contiene un objeto IMessage que guarda la respuesta del servidor al mensaje contenido en el parámetro msg. Este parámetro se pasa sin inicializar.

Devoluciones

ServerProcessing que proporciona el estado del procesamiento de mensajes del servidor.

Atributos

Excepciones

El parámetro msg es null.

El llamador inmediato no tiene permisos de infraestructura.

Comentarios

Los canales usan este método para enviar llamadas remotas entrantes.

Se aplica a