ReleaseInstanceMode Enumeration
Specifies when the system recycles the service object in the operation invocation process.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
| Member name | Description | |
|---|---|---|
| AfterCall | Recycles the object subsequent to the completion of the operation. | |
| BeforeAndAfterCall | Recycles the object prior to calling the operation and subsequent to the completion of the operation. | |
| BeforeCall | Recycles the object prior to calling the operation. | |
| None | Recycles the object according to the InstanceContextMode value. |
Use the ReleaseInstanceMode with the ReleaseInstanceMode property to inform Windows Communication Foundation (WCF) that the current service object must be recycled at a particular point in the invocation process. The default behavior is to recycle a service object according to the InstanceContextMode value.
Available since 3.0