Table of Contents

Interface IChange

Namespace
Shift.Common.Timeline.Changes
Assembly
Shift.Common.dll

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

public interface IChange
Extension Methods

Remarks

An event represents something that has taken place in the domain. It is always named with a past-participle verb, such as Order Confirmed. Since an event represents something in the past, it can be considered a statement of fact, which can be used to make decisions in other parts of the system.Events are immutable because they represent domain actions that occurred in the past, and the past cannot be altered.

Properties

AggregateIdentifier

Guid AggregateIdentifier { get; set; }

Property Value

Guid

AggregateState

AggregateState AggregateState { get; set; }

Property Value

AggregateState

AggregateVersion

int AggregateVersion { get; set; }

Property Value

int

ChangeTime

DateTimeOffset ChangeTime { get; set; }

Property Value

DateTimeOffset

OriginOrganization

Guid OriginOrganization { get; set; }

Property Value

Guid

OriginUser

Guid OriginUser { get; set; }

Property Value

Guid

Methods

Identify(Guid, Guid)

void Identify(Guid organization, Guid user)

Parameters

organization Guid
user Guid