Class CommandBase
- Namespace
- Excalibur.Application.Requests.Commands
- Assembly
- Excalibur.Application.dll
Represents the base class for commands that do not return a value.
public abstract class CommandBase : ICommand, IDispatchAction, IDispatchMessage, IActivity, IAmCorrelatable, IAmMultiTenant
- Inheritance
-
CommandBase
- Implements
- Derived
- Inherited Members
Remarks
Initializes a new instance of the CommandBase class with a specified correlation ID and tenant ID.
Constructors
CommandBase()
Initializes a new instance of the CommandBase class with default values.
protected CommandBase()
CommandBase(Guid, string?)
Represents the base class for commands that do not return a value.
protected CommandBase(Guid correlationId, string? tenantId = null)
Parameters
correlationIdGuidThe correlation ID associated with the command.
tenantIdstringThe tenant ID associated with the command. Defaults to null.
Remarks
Initializes a new instance of the CommandBase class with a specified correlation ID and tenant ID.
Properties
ActivityDescription
Gets the description of the activity.
public virtual string ActivityDescription { get; }
Property Value
- string
The description of the activity.
ActivityDisplayName
Gets the display name of the activity.
public virtual string ActivityDisplayName { get; }
Property Value
- string
The display name of the activity.
ActivityName
Gets the name of the activity.
public string ActivityName { get; }
Property Value
- string
The name of the activity.
Headers
Gets the message headers.
public IReadOnlyDictionary<string, object> Headers { get; }
Property Value
- IReadOnlyDictionary<string, object>
A read-only dictionary containing the command's metadata headers.
Id
Gets the unique identifier for this command as a GUID.
public Guid Id { get; protected init; }
Property Value
- Guid
A unique identifier for this command instance.
MessageId
Gets the unique identifier for this command as a string.
public string MessageId { get; }
Property Value
- string
The string representation of the command's unique identifier.
MessageType
Gets the type identifier for this command.
public string MessageType { get; }
Property Value
- string
The fully qualified type name of the command.
TenantId
Gets the tenant identifier associated with the entity.
public string TenantId { get; }
Property Value
- string
The tenant identifier associated with the entity.
TransactionBehavior
public virtual TransactionScopeOption TransactionBehavior { get; protected init; }
Property Value
TransactionIsolation
public virtual IsolationLevel TransactionIsolation { get; protected init; }
Property Value
TransactionTimeout
public virtual TimeSpan TransactionTimeout { get; protected init; }