Class Command
Defines the base class for all commands.
public class Command : ICommand
- Inheritance
-
Command
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
A command is a request to change the domain. It is always are named with a verb in the imperative mood, such as Confirm Order. Unlike an event, a command is not a statement of fact; it is only a request, and thus may be refused. Commands are immutable because their expected usage is to be sent directly to the domain model for processing. They do not need to change during their projected lifetime.
Constructors
Command()
public Command()
Properties
AggregateIdentifier
public Guid AggregateIdentifier { get; set; }
Property Value
CommandIdentifier
public Guid CommandIdentifier { get; set; }
Property Value
ExpectedVersion
public int? ExpectedVersion { get; set; }
Property Value
- int?
OriginOrganization
public Guid OriginOrganization { get; set; }
Property Value
OriginUser
public Guid OriginUser { get; set; }