Table of Contents

Class Command

Namespace
Shift.Common.Timeline.Commands
Assembly
Shift.Common.dll

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

Guid

CommandIdentifier

public Guid CommandIdentifier { get; set; }

Property Value

Guid

ExpectedVersion

public int? ExpectedVersion { get; set; }

Property Value

int?

OriginOrganization

public Guid OriginOrganization { get; set; }

Property Value

Guid

OriginUser

public Guid OriginUser { get; set; }

Property Value

Guid