C# 클래스 GHI.Domain.AggregateRoot

파일 보기 프로젝트 열기: brandongrossutti/EventStore

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
OnEvent ( IEvent @event ) : void

비공개 메소드들

메소드 설명
OnEvent ( IEvent @event, bool isNew ) : void

메소드 상세

AggregateRoot() 공개 메소드

public AggregateRoot ( ) : System
리턴 System

ClearUncommitedEvents() 공개 메소드

public ClearUncommitedEvents ( ) : void
리턴 void

LoadFromRepository() 공개 메소드

public LoadFromRepository ( IEnumerable events ) : void
events IEnumerable
리턴 void

OnEvent() 보호된 메소드

protected OnEvent ( IEvent @event ) : void
@event IEvent
리턴 void

ReloadAggregateRoot() 공개 메소드

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
리턴 void