C# 클래스 Paralect.Domain.AggregateRoot

파일 보기 프로젝트 열기: paralect/Paralect.Domain

보호된 프로퍼티들

프로퍼티 타입 설명
_id string

공개 메소드들

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

보호된 메소드들

메소드 설명
AggregateRoot ( ) : System

비공개 메소드들

메소드 설명
Apply ( IEvent evnt, bool isNew ) : void

메소드 상세

AggregateRoot() 보호된 메소드

protected AggregateRoot ( ) : System
리턴 System

Apply() 공개 메소드

Apply event on aggregate
public Apply ( IEvent evnt ) : void
evnt IEvent
리턴 void

CreateTransition() 공개 메소드

Create changeset. Used to persist changes in aggregate
public CreateTransition ( IDataTypeRegistry dataTypeRegistry ) : Transition
dataTypeRegistry IDataTypeRegistry
리턴 Paralect.Transitions.Transition

LoadFromEvents() 공개 메소드

Load aggregate from events
public LoadFromEvents ( IEnumerable events, Int32 version = 1 ) : void
events IEnumerable
version System.Int32
리턴 void

LoadFromTransitionStream() 공개 메소드

Load aggreagate from history
public LoadFromTransitionStream ( ITransitionStream stream ) : void
stream ITransitionStream
리턴 void

프로퍼티 상세

_id 보호되어 있는 프로퍼티

Unique identifier of Aggregate Root
protected string _id
리턴 string