Table of Contents

Interface ICommand

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

Defines the minimum set of properties that every command must implement.

public interface ICommand
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.

Properties

AggregateIdentifier

Guid AggregateIdentifier { get; set; }

Property Value

Guid

CommandIdentifier

Guid CommandIdentifier { get; set; }

Property Value

Guid

ExpectedVersion

int? ExpectedVersion { get; set; }

Property Value

int?

OriginOrganization

Guid OriginOrganization { get; set; }

Property Value

Guid

OriginUser

Guid OriginUser { get; set; }

Property Value

Guid