DispatchRuntime.InputSessionShutdownHandlers プロパティ

定義

入力セッションを閉じる方法を制御するカスタム ハンドラーを追加するために使用できる IInputSessionShutdown オブジェクトのコレクションを取得します。

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)

プロパティ値

オブジェクト型のSynchronizedCollection<T>IInputSessionShutdown

注釈

このプロパティに IInputSessionShutdown オブジェクトを追加して、入力セッションを閉じる方法を制御します。 IInputChannel.ReceiveSystem.ServiceModel.Channels.IDuplexSessionChannel メソッドの呼び出しが最初にnullを返すとき (入力セッションが閉じられたことを示します)、ディスパッチャーは各IInputSessionShutdown オブジェクトを呼び出し、System.ServiceModel.Channels.IDuplexSessionChannel オブジェクトを渡します。 カスタム IInputSessionShutdown オブジェクトでは、この IDuplexSessionChannel オブジェクトを使用して、チャネルの状態ごとにクリーンアップを実行したり、チャネルを閉じる前に応答メッセージを送信したりできます。

適用対象