DispatchRuntime.InputSessionShutdownHandlers Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient une collection d’objets IInputSessionShutdown qui peuvent être utilisés pour ajouter un gestionnaire personnalisé pour contrôler la fermeture des sessions d’entrée.
public:
property System::Collections::Generic::SynchronizedCollection<System::ServiceModel::Dispatcher::IInputSessionShutdown ^> ^ InputSessionShutdownHandlers { System::Collections::Generic::SynchronizedCollection<System::ServiceModel::Dispatcher::IInputSessionShutdown ^> ^ get(); };
public System.Collections.Generic.SynchronizedCollection<System.ServiceModel.Dispatcher.IInputSessionShutdown> InputSessionShutdownHandlers { get; }
member this.InputSessionShutdownHandlers : System.Collections.Generic.SynchronizedCollection<System.ServiceModel.Dispatcher.IInputSessionShutdown>
Public ReadOnly Property InputSessionShutdownHandlers As SynchronizedCollection(Of IInputSessionShutdown)
Valeur de propriété
Objet SynchronizedCollection<T> de type IInputSessionShutdown .
Remarques
Ajoutez un IInputSessionShutdown objet à cette propriété pour contrôler la façon dont les sessions d’entrée sont fermées. Lorsqu’un appel à la méthode sur le IInputChannel.ReceiveSystem.ServiceModel.Channels.IDuplexSessionChannel premier retourne null, (ce qui indique que la session d’entrée a été fermée), le répartiteur appelle chaque IInputSessionShutdown objet, en le transmettant à un System.ServiceModel.Channels.IDuplexSessionChannel objet. Les objets personnalisés IInputSessionShutdown peuvent utiliser cet IDuplexSessionChannel objet pour effectuer un nettoyage pour chaque état du canal ou envoyer un message de réponse avant de fermer le canal.