C# Class Paralect.Domain.AggregateRoot

Afficher le fichier Open project: paralect/Paralect.Domain

Protected Properties

Свойство Type Description
_id string

Méthodes publiques

Méthode Description
Apply ( IEvent evnt ) : void

Apply event on aggregate

CreateTransition ( IDataTypeRegistry dataTypeRegistry ) : Transition

Create changeset. Used to persist changes in aggregate

LoadFromEvents ( IEnumerable events, Int32 version = 1 ) : void

Load aggregate from events

LoadFromTransitionStream ( ITransitionStream stream ) : void

Load aggreagate from history

Méthodes protégées

Méthode Description
AggregateRoot ( ) : System

Private Methods

Méthode Description
Apply ( IEvent evnt, bool isNew ) : void

Method Details

AggregateRoot() protected méthode

protected AggregateRoot ( ) : System
Résultat System

Apply() public méthode

Apply event on aggregate
public Apply ( IEvent evnt ) : void
evnt IEvent
Résultat void

CreateTransition() public méthode

Create changeset. Used to persist changes in aggregate
public CreateTransition ( IDataTypeRegistry dataTypeRegistry ) : Transition
dataTypeRegistry IDataTypeRegistry
Résultat Paralect.Transitions.Transition

LoadFromEvents() public méthode

Load aggregate from events
public LoadFromEvents ( IEnumerable events, Int32 version = 1 ) : void
events IEnumerable
version System.Int32
Résultat void

LoadFromTransitionStream() public méthode

Load aggreagate from history
public LoadFromTransitionStream ( ITransitionStream stream ) : void
stream ITransitionStream
Résultat void

Property Details

_id protected_oe property

Unique identifier of Aggregate Root
protected string _id
Résultat string