Show / Hide Table of Contents

Interface IAuthorizer<TRequest>

Defines a contract for authorizing a specific request.

Namespace: MediatorForge.CQRS.Authorizers
Assembly: MediatorForge.dll
Syntax
public interface IAuthorizer<in TRequest>
Type Parameters
Name Description
TRequest

The type of the request to authorize.

Methods

| Improve this Doc View Source

AuthorizeAsync(TRequest, CancellationToken)

Asynchronously authorizes the specified request.

Declaration
Task<AuthorizationResult> AuthorizeAsync(TRequest request, CancellationToken cancellationToken = null)
Parameters
Type Name Description
TRequest request

The request to authorize.

CancellationToken cancellationToken

The request cancellation token.

Returns
Type Description
Task<AuthorizationResult>

A task that represents the asynchronous authorization operation. The task result contains the AuthorizationResult.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX