![]() | ISessionProvision Method |
An Endpoint provision timer, controlled by the property ProvisionTimeoutInMsecs, controls the maximum amount of time a provision attempt lasts for. Upon expiry of this timer, a ProvisionError event is returned in the session event delegate.
Namespace: SolaceSystems.Solclient.Messaging
ReturnCode Provision( IEndpoint endpoint, EndpointProperties props, int flags, Object correlationKey )
Exception | Condition |
---|---|
OperationErrorException | Throws OperationErrorException in the following cases: The operation could not complete due to an invalid appliance or session state. An Endpoint with the same name already exists, and the user did not pass IgnoreErrorIfEndpointAlreadyExists was not specified in flags. A property mismatch error has occurred. This occurs if the user has passed in true for ignoreErrorIfEndpointAlreadyExists AND and Endpoint with the same name already exists AND the provision property passed in by the application and what is currently provisioned on the appliance are not equal. 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 |