Table of Contents

Class AuthorizeCommandBase<TResponse>

Namespace
Excalibur.A3.Authorization.Requests
Assembly
Excalibur.A3.dll

Provides a base implementation for an authorization command with a specific response type.

public abstract class AuthorizeCommandBase<TResponse> : CommandBase<TResponse>, IAuthorizeCommand<TResponse>, ICommand<TResponse>, ICommand, IActivity, IAmCorrelatable, IAmMultiTenant, IDispatchAction<TResponse>, IRequireAuthorization, IDispatchAction, IDispatchMessage

Type Parameters

TResponse

The type of the response the command produces.

Inheritance
CommandBase<TResponse>
AuthorizeCommandBase<TResponse>
Implements
ICommand<TResponse>
IDispatchAction<TResponse>
Derived
Inherited Members

Remarks

Inherits from CommandBase<TResponse> and implements IAuthorizeCommand<TResponse>. This base class is designed for commands that require authorization.

Constructors

AuthorizeCommandBase()

Initializes a new instance of the AuthorizeCommandBase<TResponse> class with default values.

protected AuthorizeCommandBase()

AuthorizeCommandBase(Guid, string?)

Initializes a new instance of the AuthorizeCommandBase<TResponse> class with the specified correlation ID and tenant ID.

protected AuthorizeCommandBase(Guid correlationId, string? tenantId = null)

Parameters

correlationId Guid

The correlation ID for the command.

tenantId string

The tenant ID for the command. Defaults to null .

Properties

AccessToken

public IAccessToken? AccessToken { get; set; }

Property Value

IAccessToken