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
ServiceBindingContextThe id of binding to create.
request
ServiceBindingRequestParameters 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
ServiceBindingContextThe id of Service Binding to find last operation applied to it
serviceId
stringThe id of the service associated with the binding.
planId
stringThe id of the plan associated with the binding.
operation
stringThe value provided in Operation.
Returns
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
ServiceBindingContextThe id of the binding being deleted.
serviceId
stringThe id of the service associated with the binding being deleted.
planId
stringThe 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).