IInstanceProvider.ReleaseInstance(InstanceContext, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Public Sub ReleaseInstance (instanceContext As InstanceContext, instance As Object)
Parameters
- instanceContext
- InstanceContext
The service's instance context.
- instance
- 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
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.