Table of Contents

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 IEndpoint

The endpoint used to navigate to this one.

relativeUri Uri

The URI of this endpoint relative to the referrer's. Prefix ./ to append a trailing slash to the referrer URI if missing.

acceptsIncomplete bool

A 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

serviceId string
planId string

Returns

Uri

ParseDeferredResponseAsync(HttpResponseMessage)

protected Task<AsyncOperation> ParseDeferredResponseAsync(HttpResponseMessage response)

Parameters

response HttpResponseMessage

Returns

Task<AsyncOperation>

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