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::IsIdle Method (InstanceContext^)

 

Called when all InstanceContext activities have completed to enable implementers to prevent the InstanceContext from being recycled.

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

bool IsIdle(
	InstanceContext^ instanceContext
)

Parameters

instanceContext
Type: System.ServiceModel::InstanceContext^

The InstanceContext object that is considered idle.

Return Value

Type: System::Boolean

true if Windows Communication Foundation (WCF) is to close and recycle the InstanceContext object and adjust the value of ServiceThrottle::MaxConcurrentInstances; otherwise, false.

IsIdle is called when WCF is about to close and recycle an idle InstanceContext object so that you can inform the runtime whether to continue doing so.

For an example that demonstrates the sharing of instance contexts, see InstanceContextSharing.

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