Table of Contents

Class CommandBase<TResponse>

Namespace
Excalibur.Application.Requests.Commands
Assembly
Excalibur.Application.dll

Represents the base class for commands with a specific response type.

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

Type Parameters

TResponse

The type of the response returned by the command.

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

Remarks

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

Constructors

CommandBase()

Initializes a new instance of the CommandBase<TResponse> class.

protected CommandBase()

CommandBase(Guid, string?)

Represents the base class for commands with a specific response type.

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

Parameters

correlationId Guid

The correlation ID associated with the command.

tenantId string

The tenant ID associated with the command. Defaults to DefaultTenantId if null.

Remarks

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