DispatchRuntime.InputSessionShutdownHandlers Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a collection of IInputSessionShutdown objects that can be used to add a custom handler to control how input sessions are closed.
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)
Property Value
A SynchronizedCollection<T> of type IInputSessionShutdown objects.
Remarks
Add an IInputSessionShutdown object to this property to control the manner in which input sessions are closed. When a call to the IInputChannel.Receive method on the System.ServiceModel.Channels.IDuplexSessionChannel first returns null
, (which indicates that the input session has been closed), the dispatcher invokes each IInputSessionShutdown object, passing it an System.ServiceModel.Channels.IDuplexSessionChannel object. Custom IInputSessionShutdown objects can use this IDuplexSessionChannel object to perform clean-up for each channel state or to send a response message before closing the channel.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈