IInstanceContextProvider::IsIdle Method (InstanceContext^)
Called when all InstanceContext activities have completed to enable implementers to prevent the InstanceContext from being recycled.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- instanceContext
-
Type:
System.ServiceModel::InstanceContext^
The InstanceContext object that is considered idle.
Return Value
Type: System::Booleantrue 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.
Available since 3.0