C# Class GHI.Domain.AggregateRoot

Show file Open project: brandongrossutti/EventStore

Public Methods

Method 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

Protected Methods

Method Description
OnEvent ( IEvent @event ) : void

Private Methods

Method Description
OnEvent ( IEvent @event, bool isNew ) : void

Method Details

AggregateRoot() public method

public AggregateRoot ( ) : System
return System

ClearUncommitedEvents() public method

public ClearUncommitedEvents ( ) : void
return void

LoadFromRepository() public method

public LoadFromRepository ( IEnumerable events ) : void
events IEnumerable
return void

OnEvent() protected method

protected OnEvent ( IEvent @event ) : void
@event IEvent
return void

ReloadAggregateRoot() public method

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
return void