Class CommandContext
- Namespace
- Cratis.Applications.Commands
- Assembly
- Cratis.Applications.dll
Represents the context for a command being executed.
public record CommandContext : IEquatable<CommandContext>
- Inheritance
-
CommandContext
- Implements
- Inherited Members
Constructors
CommandContext(CorrelationId, Type, object, IEnumerable<object>)
Represents the context for a command being executed.
public CommandContext(CorrelationId CorrelationId, Type Type, object Command, IEnumerable<object> Dependencies)
Parameters
CorrelationId
CorrelationIdThe correlation ID for the command.
Type
TypeThe type of the command.
Command
objectThe command instance.
Dependencies
IEnumerable<object>The dependencies required to handle the command.
Properties
Command
The command instance.
public object Command { get; init; }
Property Value
CorrelationId
The correlation ID for the command.
public CorrelationId CorrelationId { get; init; }
Property Value
Dependencies
The dependencies required to handle the command.
public IEnumerable<object> Dependencies { get; init; }
Property Value
Type
The type of the command.
public Type Type { get; init; }