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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기