ISessionDeprovision Method
Deprovisions or removes a durable
ITopicEndpoint or
IQueue from the appliance.
Endpoint deprovisioning can be carried out in a synchronous or asynchronous mode, depending upon the provision flags
passed in to this method.
If
WaitForConfirm is specified in flags,
the calling thread is blocked until the endpoint deprovisioning attempt either
succeeds or is determined to have failed.
If
WaitForConfirm is not set,
SOLCLIENT_IN_PROGRESS
is returned when the endpoint deprovision request is successfully sent, and the remove attempt proceeds in the background.
An Endpoint provision timer, controlled by the property
ProvisionTimeoutInMsecs, controls the maximum amount of
time a deprovsion attempt lasts for. Upon expiry of this timer,
a ProvisionError event is returned in the session event delegate.
OperationErrorException |
Throws OperationErrorException if it fails to deprovision or delete the Endpoint. The possible reasons are:
-
The operation could not complete due to an invalid appliance or session state.
-
No Endpoint with the same name exists on the appliance, AND the user has not specified the IgnoreErrorIfEndpointDoesNotExist.
Note: The ErroInfo property in OperationErrorException will have a specific SubCode indicating what error case the application
encountered.
Possible sub-codes:
|
ObjectDisposedException |
Thrown when the session is already disposed (terminal state).
|
ArgumentNullException | |
ArgumentOutOfRangeException | |