Class ServiceInstancePollingEndpoint
- Namespace
- OpenServiceBroker.Instances
- Assembly
- OpenServiceBroker.Client.dll
Represents a specific Service Instance. Uses potentially deferred (asynchronous) operations and automatically handles polling to make them appear blocking.
public class ServiceInstancePollingEndpoint : ServiceInstanceEndpointBase<IServiceBindingEndpoint, ServiceBindingPollingEndpoint>, IServiceInstanceEndpoint, IServiceInstanceEndpointBase<IServiceBindingEndpoint>, IEndpoint
- Inheritance
-
ServiceInstancePollingEndpoint
- Implements
- Inherited Members
- Extension Methods
Constructors
ServiceInstancePollingEndpoint(IEndpoint, Uri)
Represents a specific Service Instance. Uses potentially deferred (asynchronous) operations and automatically handles polling to make them appear blocking.
public ServiceInstancePollingEndpoint(IEndpoint referrer, Uri relativeUri)
Parameters
referrerIEndpointThe endpoint used to navigate to this one.
relativeUriUriThe 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
serviceIdstringThe id of the service associated with the instance being deleted.
planIdstringThe 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
requestServiceInstanceProvisionRequestParameters 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
requestServiceInstanceUpdateRequestParameters for the requested Service Instance update.
Returns
Exceptions
- BrokerException
The requested change is not supported.