Table of Contents

Class ServiceBindingPollingEndpoint

Namespace
OpenServiceBroker.Bindings
Assembly
OpenServiceBroker.Client.dll

Represents a Service Binding for a specific Service Instance. Uses potentially deferred (asynchronous) operations and automatically handles polling to make them appear blocking.

public class ServiceBindingPollingEndpoint : ServiceBindingEndpointBase, IServiceBindingEndpoint, IServiceBindingEndpointBase, IEndpoint
Inheritance
ServiceBindingPollingEndpoint
Implements
Inherited Members
Extension Methods

Constructors

ServiceBindingPollingEndpoint(IEndpoint, Uri)

Represents a Service Binding for a specific Service Instance. Uses potentially deferred (asynchronous) operations and automatically handles polling to make them appear blocking.

public ServiceBindingPollingEndpoint(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

BindAsync(ServiceBindingRequest)

Generates the Service Binding.

public Task<ServiceBinding> BindAsync(ServiceBindingRequest request)

Parameters

request ServiceBindingRequest

Parameters for the requested Service Binding.

Returns

Task<ServiceBinding>

The binding.

Exceptions

ConflictException

A binding with the same id already exists but with different attributes.

UnbindAsync(string, string)

Unbinds/deletes the Service Binding.

public Task UnbindAsync(string serviceId, string planId)

Parameters

serviceId string

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

planId string

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

Returns

Task

Exceptions

GoneException

The binding does not exist (anymore).