Context Provider. Notify Idle(InstanceContextIdleCallback, InstanceContext) Method
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)
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.