ChannelServices.DispatchMessage Méthode

Définition

Répartit les appels distants entrants.

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

Paramètres

sinkStack
IServerChannelSinkStack

Pile des récepteurs de canal de serveur que le message a déjà parcourus.

msg
IMessage

Message à distribuer.

replyMsg
IMessage

Lorsque cette méthode est retournée, contient une IMessage réponse du serveur au message contenu dans le msg paramètre. Ce paramètre est passé non initialisé.

Retours

Qui ServerProcessing donne l’état du traitement des messages du serveur.

Attributs

Exceptions

Le msg paramètre est null.

L’appelant immédiat n’a pas d’autorisation d’infrastructure.

Remarques

Cette méthode est utilisée par les canaux pour distribuer des appels distants entrants.

S’applique à