Class AuthenticatorDelegatingHandler
Delegating handler for adding authentication tokens to requests.
Implements
Inherited Members
Namespace: Cognite.Extensions
Assembly: Cognite.Extensions.dll
Syntax
public class AuthenticatorDelegatingHandler : DelegatingHandler, IDisposable
  Constructors
| Edit this page View SourceAuthenticatorDelegatingHandler(IAuthenticator?)
Delegating handler for adding authentication tokens to requests. Used instead of auth in the SDK to add tokens inside retries.
Declaration
public AuthenticatorDelegatingHandler(IAuthenticator? authenticator)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IAuthenticator | authenticator | The inner authenticator. Can be null, in which case this handler is a no-op.  | 
      
Methods
| Edit this page View SourceSendAsync(HttpRequestMessage, CancellationToken)
Declaration
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
  Parameters
| Type | Name | Description | 
|---|---|---|
| HttpRequestMessage | request | |
| CancellationToken | cancellationToken | 
Returns
| Type | Description | 
|---|---|
| Task<HttpResponseMessage> |