Table of Contents

Class SerializedChange

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

Provides a serialization wrapper for events so that common properties are not embedded inside the event data.

public class SerializedChange : IChange
Inheritance
SerializedChange
Implements
Inherited Members
Extension Methods

Constructors

SerializedChange()

Constructs a new instance. By default the event time is now.

public SerializedChange()

Properties

AggregateIdentifier

Identifies the aggregate for which the event was raised.

public Guid AggregateIdentifier { get; set; }

Property Value

Guid

AggregateState

An event may (optionally) include the current state for the aggregate that raised it.

public AggregateState AggregateState { get; set; }

Property Value

AggregateState

Remarks

Event subscribers must never assume this property is used, therefore it may be null some (or all!) of the time. Each individual command subscriber decides for itself whether or not to set this property before it publishes new events. It is strictly for convenience, when you have event subscribers, process managers, and/or query projections that need to work with the aggregate state "as at" the time of a published event.

AggregateVersion

Version number of the aggregate for which the event was raised.

public int AggregateVersion { get; set; }

Property Value

int

ChangeData

Serialized data for the event.

public string ChangeData { get; set; }

Property Value

string

ChangeTime

Date and time the event was raised.

public DateTimeOffset ChangeTime { get; set; }

Property Value

DateTimeOffset

ChangeType

Abbreviated class name.

public string ChangeType { get; set; }

Property Value

string

OriginOrganization

Identifies the organization for the session in which the event was raised.

public Guid OriginOrganization { get; set; }

Property Value

Guid

OriginUser

Identifies the user for the session in which the event was raised.

public Guid OriginUser { get; set; }

Property Value

Guid

Methods

Identify(Guid, Guid)

public void Identify(Guid organization, Guid user)

Parameters

organization Guid
user Guid