Table of Contents

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 IEndpoint

The endpoint used to navigate to this one.

relativeUri Uri

The 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 string

The id of the service associated with the instance being deleted.

planId string

The id of the plan associated with the instance being deleted.

Returns

Task

Exceptions

GoneException

The instance does not exist (anymore).

ProvisionAsync(ServiceInstanceProvisionRequest)

Provisions the Service Instance.

public Task<ServiceInstanceProvision> ProvisionAsync(ServiceInstanceProvisionRequest request)

Parameters

request ServiceInstanceProvisionRequest

Parameters 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 ServiceInstanceUpdateRequest

Parameters for the requested Service Instance update.

Returns

Task

Exceptions

BrokerException

The requested change is not supported.