Class ServiceBrokerEndpointBase
- Namespace
- OpenServiceBroker
- Assembly
- OpenServiceBroker.Client.dll
Common base class for Open Service Broker endpoints.
public abstract class ServiceBrokerEndpointBase : EndpointBase, IEndpoint
- Inheritance
-
ServiceBrokerEndpointBase
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
ServiceBrokerEndpointBase(IEndpoint, Uri, bool)
Creates a new service endpoint.
protected ServiceBrokerEndpointBase(IEndpoint referrer, Uri relativeUri, bool acceptsIncomplete = false)
Parameters
referrer
IEndpointThe endpoint used to navigate to this one.
relativeUri
UriThe URI of this endpoint relative to the
referrer
's. Prefix./
to append a trailing slash to thereferrer
URI if missing.acceptsIncomplete
boolA value of true indicates that the Platform and its clients support deferred (asynchronous) Service Broker operations. If this parameter is false, and the Service Broker can only handle a request deferred (asynchronously) AsyncRequiredException is thrown.
Methods
FromContentAsync<T>(HttpResponseMessage)
protected Task<T> FromContentAsync<T>(HttpResponseMessage message)
Parameters
message
HttpResponseMessage
Returns
- Task<T>
Type Parameters
T
GetDeleteUri(string?, string?)
protected Uri GetDeleteUri(string? serviceId, string? planId)
Parameters
Returns
ParseDeferredResponseAsync(HttpResponseMessage)
protected Task<AsyncOperation> ParseDeferredResponseAsync(HttpResponseMessage response)
Parameters
response
HttpResponseMessage
Returns
ParseDeferredResponseAsync<TComplete, TDeferred>(HttpResponseMessage)
protected Task<TDeferred> ParseDeferredResponseAsync<TComplete, TDeferred>(HttpResponseMessage response) where TComplete : class, IUnchangedFlag where TDeferred : AsyncOperation, ICompletableWithResult<TComplete>, new()
Parameters
response
HttpResponseMessage
Returns
- Task<TDeferred>
Type Parameters
TComplete
TDeferred