Class ServiceBindingBlockingEndpoint
- Namespace
- OpenServiceBroker.Bindings
- Assembly
- OpenServiceBroker.Client.dll
Represents a Service Binding for a specific Service Instance with blocking operations. If the Service Broker can only handle a request deferred (asynchronously) AsyncRequiredException is thrown.
public class ServiceBindingBlockingEndpoint : ServiceBindingEndpointBase, IServiceBindingEndpoint, IServiceBindingEndpointBase, IEndpoint
- Inheritance
-
ServiceBindingBlockingEndpoint
- Implements
- Inherited Members
- Extension Methods
Constructors
ServiceBindingBlockingEndpoint(IEndpoint, Uri)
Represents a Service Binding for a specific Service Instance with blocking operations. If the Service Broker can only handle a request deferred (asynchronously) AsyncRequiredException is thrown.
public ServiceBindingBlockingEndpoint(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).