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
IEndpointThe endpoint used to navigate to this one.
relativeUri
UriThe URI of this endpoint relative to the
referrer
's.
Methods
BindAsync(ServiceBindingRequest)
Generates the Service Binding.
public Task<ServiceBinding> BindAsync(ServiceBindingRequest request)
Parameters
request
ServiceBindingRequestParameters 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
stringThe id of the service associated with the binding being deleted.
planId
stringThe id of the plan associated with the binding being deleted.
Returns
Exceptions
- GoneException
The binding does not exist (anymore).