Class ResourceCommandBase<TResourceType, TResponse>
- Namespace
- Excalibur.A3.Authorization.Requests
- Assembly
- Excalibur.A3.dll
An abstract base command class that provides implementations of various required interfaces.
public abstract class ResourceCommandBase<TResourceType, TResponse> : AuthorizeCommandBase<TResponse>, IAuthorizeCommand<TResponse>, ICommand<TResponse>, ICommand, IActivity, IAmCorrelatable, IAmMultiTenant, IDispatchAction<TResponse>, IRequireActivityAuthorization, IRequireAuthorization, IDispatchAction, IDispatchMessage
Type Parameters
TResourceTypeThe type of resource secured by this command.
TResponseThe response type returned by the command.
- Inheritance
-
CommandBase<TResponse>AuthorizeCommandBase<TResponse>ResourceCommandBase<TResourceType, TResponse>
- Implements
-
IAuthorizeCommand<TResponse>ICommand<TResponse>IDispatchAction<TResponse>
- Inherited Members
Remarks
Inherit from this base class when the command returns a response.
Constructors
ResourceCommandBase()
Initializes a new instance of the ResourceCommandBase<TResourceType, TResponse> class.
protected ResourceCommandBase()
ResourceCommandBase(Guid, string, string?)
Initializes a new instance of the ResourceCommandBase<TResourceType, TResponse> class.
protected ResourceCommandBase(Guid correlationId, string resourceId, string? tenantId = null)
Parameters
correlationIdGuidA unique correlation identifier provided by the client.
resourceIdstringThe resource identifier accessed by this command.
tenantIdstringThe tenant identifier.
Properties
ResourceId
Gets the resource this activity applies to.
public string? ResourceId { get; protected init; }
Property Value
ResourceTypes
Gets the type of resource to be authorized against.
public virtual string[] ResourceTypes { get; }
Property Value
- string[]
The types of resource.