Class AuthorizeQuery<TResponse>
- Namespace
- Excalibur.A3.Authorization.Requests
- Assembly
- Excalibur.A3.dll
Provides a base implementation for queries that require authorization.
public abstract class AuthorizeQuery<TResponse> : QueryBase<TResponse>, IAuthorizeQuery<TResponse>, IQuery<TResponse>, IDispatchAction<TResponse>, IActivity, IAmCorrelatable, IAmMultiTenant, IRequireAuthorization, IDispatchAction, IDispatchMessage
Type Parameters
TResponseThe type of response produced by the query.
- Inheritance
-
QueryBase<TResponse>AuthorizeQuery<TResponse>
- Implements
-
IAuthorizeQuery<TResponse>IQuery<TResponse>IDispatchAction<TResponse>
- Inherited Members
Remarks
Implements the IAuthorizeQuery<TResponse> interface, ensuring that queries can enforce access control policies and handle authorization tokens.
Constructors
AuthorizeQuery()
Initializes a new instance of the AuthorizeQuery<TResponse> class with default values.
protected AuthorizeQuery()
AuthorizeQuery(Guid, string?)
Initializes a new instance of the AuthorizeQuery<TResponse> class with the specified correlation ID and tenant ID.
protected AuthorizeQuery(Guid correlationId, string? tenantId = null)
Parameters
correlationIdGuidThe correlation ID to track the query.
tenantIdstringThe tenant ID associated with the query. Defaults to
null.
Properties
AccessToken
public IAccessToken? AccessToken { get; set; }