ChannelServices.DispatchMessage Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Envía llamadas remotas entrantes.
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 de servidor que el mensaje ya ha recorrido.
- msg
- IMessage
Mensaje que se va a enviar.
- replyMsg
- IMessage
Cuando este método vuelve, contiene un IMessage que contiene la respuesta del servidor al mensaje contenido en el msg parámetro . Este parámetro se pasa sin inicializar.
Devoluciones
que ServerProcessing proporciona el estado del procesamiento de mensajes del servidor.
- Atributos
Excepciones
El msg parámetro es null.
El llamador inmediato no tiene permiso de infraestructura.
Comentarios
Los canales usan este método para enviar llamadas remotas entrantes.