Table of Contents

Class GeoServicesSourceCredentialHandler

Namespace
Honua.Sdk.GeoServices.FeatureServer
Assembly
Honua.Sdk.GeoServices.dll

Applies a GeoServicesSourceCredential only to same-origin HTTPS (or loopback) requests; a supplied inner handler keeps its own redirect behaviour.

public sealed class GeoServicesSourceCredentialHandler : DelegatingHandler, IDisposable
Inheritance
GeoServicesSourceCredentialHandler
Implements
Inherited Members

Constructors

GeoServicesSourceCredentialHandler(GeoServicesSourceCredential, HttpMessageHandler?)

Creates the handler; only the default inner handler disables redirects, so a supplied handler that follows them can forward the credential.

public GeoServicesSourceCredentialHandler(GeoServicesSourceCredential credential, HttpMessageHandler? innerHandler = null)

Parameters

credential GeoServicesSourceCredential
innerHandler HttpMessageHandler

Methods

Dispose(bool)

Releases the inner handler when disposing.

protected override void Dispose(bool disposing)

Parameters

disposing bool

SendAsync(HttpRequestMessage, CancellationToken)

Attaches the credential to a same-origin request and sends it.

protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)

Parameters

request HttpRequestMessage
cancellationToken CancellationToken

Returns

Task<HttpResponseMessage>