Table of Contents

Interface IServiceBindingDeferred

Namespace
OpenServiceBroker.Bindings
Assembly
OpenServiceBroker.Server.dll

Manages bindings for Service Instances with potentially deferred (asynchronous) operations.

public interface IServiceBindingDeferred : IServiceBindingBase
Inherited Members
Extension Methods

Methods

BindAsync(ServiceBindingContext, ServiceBindingRequest)

Generates a Service Binding.

Task<ServiceBindingAsyncOperation> BindAsync(ServiceBindingContext context, ServiceBindingRequest request)

Parameters

context ServiceBindingContext

The id of binding to create.

request ServiceBindingRequest

Parameters for the requested Service Binding.

Returns

Task<ServiceBindingAsyncOperation>

A potentially deferred (asynchronous) operation.

Exceptions

ConflictException

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

GetLastOperationAsync(ServiceBindingContext, string?, string?, string?)

Gets the state of the last requested deferred (asynchronous) operation for a Service Binding.

Task<LastOperationResource> GetLastOperationAsync(ServiceBindingContext context, string? serviceId = null, string? planId = null, string? operation = null)

Parameters

context ServiceBindingContext

The id of Service Binding to find last operation applied to it

serviceId string

The id of the service associated with the binding.

planId string

The id of the plan associated with the binding.

operation string

The value provided in Operation.

Returns

Task<LastOperationResource>

Exceptions

GoneException

The binding requested to be deleted does not exist (anymore).

UnbindAsync(ServiceBindingContext, string, string)

Deletes a Service Binding.

Task<AsyncOperation> UnbindAsync(ServiceBindingContext context, string serviceId, string planId)

Parameters

context ServiceBindingContext

The id of the binding being deleted.

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

A potentially deferred (asynchronous) operation.

Exceptions

GoneException

The binding does not exist (anymore).