IInstanceProvider.ReleaseInstance(InstanceContext, Object) IInstanceProvider.ReleaseInstance(InstanceContext, Object) IInstanceProvider.ReleaseInstance(InstanceContext, Object) Method

Definition

Called when an InstanceContext object recycles a service object.

public:
 void ReleaseInstance(System::ServiceModel::InstanceContext ^ instanceContext, System::Object ^ instance);
public void ReleaseInstance (System.ServiceModel.InstanceContext instanceContext, object instance);
abstract member ReleaseInstance : System.ServiceModel.InstanceContext * obj -> unit
Parameters
instanceContext
InstanceContext InstanceContext InstanceContext

The service's instance context.

instance
Object Object Object

The service object to be recycled.

Remarks

Use the ReleaseInstance method to perform some custom resource disposal or other recycling customization when a service recycles a service object.

Applies to