ChannelServices.DispatchMessage Metodo

Definizione

Invia le chiamate remote in arrivo.

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

Parametri

sinkStack
IServerChannelSinkStack

Stack dei sink di canale del server attraverso cui il messaggio è già passato.

msg
IMessage

Messaggio da inviare.

replyMsg
IMessage

Quando il metodo termina, contiene un oggetto IMessage con la risposta del server al messaggio contenuto nel parametro msg. Questo parametro viene passato non inizializzato.

Restituisce

Oggetto ServerProcessing che fornisce lo stato dell'elaborazione dei messaggi del server.

Attributi

Eccezioni

Il valore del parametro msg è null.

Il chiamante immediato non dispone dell'autorizzazione di infrastruttura.

Commenti

Questo metodo viene usato dai canali per inviare chiamate remote in ingresso.

Si applica a