DispatchRuntime.InputSessionShutdownHandlers プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
入力セッションを閉じる方法を制御するカスタム ハンドラーを追加するために使用できる 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.ReceiveのSystem.ServiceModel.Channels.IDuplexSessionChannel メソッドの呼び出しが最初にnullを返すとき (入力セッションが閉じられたことを示します)、ディスパッチャーは各IInputSessionShutdown オブジェクトを呼び出し、System.ServiceModel.Channels.IDuplexSessionChannel オブジェクトを渡します。 カスタム IInputSessionShutdown オブジェクトでは、この IDuplexSessionChannel オブジェクトを使用して、チャネルの状態ごとにクリーンアップを実行したり、チャネルを閉じる前に応答メッセージを送信したりできます。