Class ServiceInstanceBlockingEndpoint
- Namespace
- OpenServiceBroker.Instances
- Assembly
- OpenServiceBroker.Client.dll
Represents a specific Service Instance with blocking operations. If the Service Broker can only handle a request deferred (asynchronously) AsyncRequiredException is thrown.
public class ServiceInstanceBlockingEndpoint : ServiceInstanceEndpointBase<IServiceBindingEndpoint, ServiceBindingBlockingEndpoint>, IServiceInstanceEndpoint, IServiceInstanceEndpointBase<IServiceBindingEndpoint>, IEndpoint
- Inheritance
-
ServiceInstanceBlockingEndpoint
- Implements
- Inherited Members
- Extension Methods
Constructors
ServiceInstanceBlockingEndpoint(IEndpoint, Uri)
Represents a specific Service Instance with blocking operations. If the Service Broker can only handle a request deferred (asynchronously) AsyncRequiredException is thrown.
public ServiceInstanceBlockingEndpoint(IEndpoint referrer, Uri relativeUri)
Parameters
referrer
IEndpointThe endpoint used to navigate to this one.
relativeUri
UriThe URI of this endpoint relative to the
referrer
's.
Methods
DeprovisionAsync(string, string)
Deprovision the Service Instance.
public Task DeprovisionAsync(string serviceId, string planId)
Parameters
serviceId
stringThe id of the service associated with the instance being deleted.
planId
stringThe id of the plan associated with the instance being deleted.
Returns
Exceptions
- GoneException
The instance does not exist (anymore).
ProvisionAsync(ServiceInstanceProvisionRequest)
Provisions the Service Instance.
public Task<ServiceInstanceProvision> ProvisionAsync(ServiceInstanceProvisionRequest request)
Parameters
request
ServiceInstanceProvisionRequestParameters for the requested Service Instance provision.
Returns
- Task<ServiceInstanceProvision>
The provisioned instance.
Exceptions
- ConflictException
An instance with the same id already exists but with different attributes.
UpdateAsync(ServiceInstanceUpdateRequest)
Updates the Service Instance.
public Task UpdateAsync(ServiceInstanceUpdateRequest request)
Parameters
request
ServiceInstanceUpdateRequestParameters for the requested Service Instance update.
Returns
Exceptions
- BrokerException
The requested change is not supported.