ChannelServices.DispatchMessage Metoda

Definicja

Wysyła przychodzące połączenia zdalne.

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

Parametry

sinkStack
IServerChannelSinkStack

Stos ujścia kanału serwera, który już przechodził komunikat.

msg
IMessage

Wiadomość do wysłania.

replyMsg
IMessage

Gdy ta metoda zostanie zwrócona, zawiera element IMessage , który przechowuje odpowiedź z serwera do komunikatu zawartego w parametrze msg . Ten parametr jest przekazywany jako niezainicjowany.

Zwraca

Element ServerProcessing , który zapewnia stan przetwarzania komunikatów serwera.

Atrybuty

Wyjątki

Parametr msg to null.

Bezpośredni obiekt wywołujący nie ma uprawnień do infrastruktury.

Uwagi

Ta metoda jest używana przez kanały do wysyłania przychodzących połączeń zdalnych.

Dotyczy