Table of Contents

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

TResourceType

The type of resource secured by this command.

TResponse

The response type returned by the command.

Inheritance
CommandBase<TResponse>
ResourceCommandBase<TResourceType, TResponse>
Implements
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

correlationId Guid

A unique correlation identifier provided by the client.

resourceId string

The resource identifier accessed by this command.

tenantId string

The tenant identifier.

Properties

ResourceId

Gets the resource this activity applies to.

public string? ResourceId { get; protected init; }

Property Value

string

The resource ID, or null if not available.

ResourceTypes

Gets the type of resource to be authorized against.

public virtual string[] ResourceTypes { get; }

Property Value

string[]

The types of resource.