Table of Contents

Class NotificationsAuthHandler

Namespace
KadicAuth.Infrastructure.Services
Assembly
KadicAuth.Infrastructure.dll

Agrega Authorization: Bearer {token} si NotificationsAuthToken está configurado.

public sealed class NotificationsAuthHandler : DelegatingHandler
Inheritance
object
HttpMessageHandler
DelegatingHandler
NotificationsAuthHandler

Constructors

NotificationsAuthHandler(IOptions<PasswordResetEmailOptions>)

public NotificationsAuthHandler(IOptions<PasswordResetEmailOptions> options)

Parameters

options IOptions<PasswordResetEmailOptions>

Methods

SendAsync(HttpRequestMessage, CancellationToken)

Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.

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

Parameters

request HttpRequestMessage

The HTTP request message to send to the server.

cancellationToken CancellationToken

A cancellation token to cancel operation.

Returns

Task<HttpResponseMessage>

The task object representing the asynchronous operation.

Exceptions

ArgumentNullException

The request was null.

OperationCanceledException

The cancellation token was canceled. This exception is stored into the returned task.