Implementing Close
The purpose of Close is to remove a resource instance from the cluster. The Cluster service prompts the Resource Monitor to invoke the Close entry point function to remove a resource instance from the cluster; for example, in response to DeleteClusterResource.
To implement Close
- Required: Make sure the resource is offline. If it is not offline, call Terminate to forcibly take the resource offline.
- Required: Deallocate all structures related to the resource instance.
- Optional: Decrement instance counters if necessary.
- Recommended: For optimal performance, return a value within 300 milliseconds.
Example