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
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.