C# Class GHI.Domain.AggregateRoot

Afficher le fichier Open project: brandongrossutti/EventStore

Méthodes publiques

Méthode Description
AggregateRoot ( ) : System
ClearUncommitedEvents ( ) : void
LoadFromRepository ( IEnumerable events ) : void
ReloadAggregateRoot ( ) : void

TODO we have affected state of aggregate root but are not commiting those events to store if rollbackis called in UoW we need to relaod our aggregate to the state that it was prior to the last events commited

Méthodes protégées

Méthode Description
OnEvent ( IEvent @event ) : void

Private Methods

Méthode Description
OnEvent ( IEvent @event, bool isNew ) : void

Method Details

AggregateRoot() public méthode

public AggregateRoot ( ) : System
Résultat System

ClearUncommitedEvents() public méthode

public ClearUncommitedEvents ( ) : void
Résultat void

LoadFromRepository() public méthode

public LoadFromRepository ( IEnumerable events ) : void
events IEnumerable
Résultat void

OnEvent() protected méthode

protected OnEvent ( IEvent @event ) : void
@event IEvent
Résultat void

ReloadAggregateRoot() public méthode

TODO we have affected state of aggregate root but are not commiting those events to store if rollbackis called in UoW we need to relaod our aggregate to the state that it was prior to the last events commited
public ReloadAggregateRoot ( ) : void
Résultat void