Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IInstanceContextProvider::NotifyIdle Method (InstanceContextIdleCallback^, InstanceContext^)

 

Called when the IsIdle method returns false to enable implementers to provide a callback to notify WCF when the InstanceContext object is finished.

Namespace:   System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

void NotifyIdle(
	InstanceContextIdleCallback^ callback,
	InstanceContext^ instanceContext
)

Parameters

callback
Type: System.ServiceModel.Dispatcher::InstanceContextIdleCallback^

The System.ServiceModel.Dispatcher::InstanceContextIdleCallback object that notifies WCF when the InstanceContext object is to be closed and recycled.

instanceContext
Type: System.ServiceModel::InstanceContext^

The current 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.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft