Interface IServiceBindingDeferredEndpoint
- Namespace
- OpenServiceBroker.Bindings
- Assembly
- OpenServiceBroker.Client.dll
Represents a Service Binding for a specific Service Instance with potentially deferred (asynchronous) operations.
public interface IServiceBindingDeferredEndpoint : IServiceBindingEndpointBase, IEndpoint
- Inherited Members
- Extension Methods
Remarks
What a Service Instance represents can vary by service. Examples include a single database on a multi-tenant server, a dedicated cluster, or an account on a web application.
Methods
BindAsync(ServiceBindingRequest)
Generates the Service Binding.
Task<ServiceBindingAsyncOperation> BindAsync(ServiceBindingRequest request)
Parameters
requestServiceBindingRequestParameters for the requested Service Binding.
Returns
- Task<ServiceBindingAsyncOperation>
A potentially deferred (asynchronous) operation. If Completed is false, start polling LastOperation(string?, string?, string?).
Exceptions
- ConflictException
A binding with the same id already exists but with different attributes.
LastOperation(string?, string?, string?)
Provides an endpoint to obtain the state of the last requested deferred (asynchronous) operation.
IPollingEndpoint<LastOperationResource> LastOperation(string? serviceId = null, string? planId = null, string? operation = null)
Parameters
serviceIdstringIf present, it MUST be the ID of the service being used.
planIdstringIf present, it MUST be the ID of the plan for the Service Instance. If this endpoint is being polled as a result of changing the plan through a Service Instance Update, the ID of the plan prior to the update MUST be used.
operationstringA Service Broker-provided identifier for the operation. When a value for operation is included with deferred (asynchronous) responses for Provision, Update, and Deprovision requests, the Platform MUST provide the same value using this query parameter. If present, MUST be a non-empty string.
Returns
UnbindAsync(string, string)
Unbinds/deletes the Service Binding.
Task<AsyncOperation> UnbindAsync(string serviceId, string planId)
Parameters
serviceIdstringThe id of the service associated with the binding being deleted.
planIdstringThe id of the plan associated with the binding being deleted.
Returns
- Task<AsyncOperation>
A potentially deferred (asynchronous) operation. If Completed is false, start polling LastOperation(string?, string?, string?).
Exceptions
- GoneException
The binding does not exist (anymore).