Zum Hauptinhalt springen

ServiceClient

Namespace: Meshmakers.Octo.Sdk.ServiceClient

Implementation of the base interface of REST based service clients.

public abstract class ServiceClient : IServiceClient

Inheritance Object → ServiceClient
Implements IServiceClient

Properties​

Options​

Returns the options for configuration of the client proxy.

public ServiceClientOptions Options { get; }

Property Value​

ServiceClientOptions

AccessToken​

public IServiceClientAccessToken AccessToken { get; }

Property Value​

IServiceClientAccessToken

ServiceUri​

public Uri ServiceUri { get; }

Property Value​

Uri

Methods​

BuildServiceUri()​

Builds the service URI.

protected abstract Uri BuildServiceUri()

Returns​

Uri

ValidateResponse(RestResponse)​

Validates the response of a HTTP call.

protected static void ValidateResponse(RestResponse response)

Parameters​

response RestResponse
The response object.

Exceptions​

UnauthorizedServiceAccessException

ServiceClientException

ServiceClientResultException