IInstanceContextProvider.NotifyIdle Method
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.
Called when the IsIdle(InstanceContext) method returns false
to enable implementers to provide a callback to notify WCF when the InstanceContext object is finished.
public:
void NotifyIdle(System::ServiceModel::Dispatcher::InstanceContextIdleCallback ^ callback, System::ServiceModel::InstanceContext ^ instanceContext);
public void NotifyIdle (System.ServiceModel.Dispatcher.InstanceContextIdleCallback callback, System.ServiceModel.InstanceContext instanceContext);
abstract member NotifyIdle : System.ServiceModel.Dispatcher.InstanceContextIdleCallback * System.ServiceModel.InstanceContext -> unit
Public Sub NotifyIdle (callback As InstanceContextIdleCallback, instanceContext As InstanceContext)
Parameters
- callback
- InstanceContextIdleCallback
The InstanceContextIdleCallback object that notifies WCF when the InstanceContext object is to be closed and recycled.
- instanceContext
- InstanceContext
The current InstanceContext.
Remarks
The NotifyIdle method is called when the IsIdle method returns false
to enable you to provide WCF with a System.ServiceModel.Dispatcher.InstanceContextIdleCallback object that you use to inform the runtime that the InstanceContext has finished its work. When the System.ServiceModel.Dispatcher.InstanceContextIdleCallback object notifies the runtime that the InstanceContext has finished its work, WCF calls IsIdle once again. This cycle continues until IsIdle returns true
and the context is closed and recycled.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기