C# Class Regalo.Core.AggregateRoot

Show file Open project: nbarnwell/Regalo

Public Methods

Method Description
AcceptUncommittedEvents ( ) : void
ApplyAll ( IEnumerable events ) : void
GetUncommittedEvents ( ) : IEnumerable

Protected Methods

Method Description
Record ( object evt ) : void

Private Methods

Method Description
ApplyEvent ( object evt ) : void
FindApplyMethod ( Type eventType ) : MethodInfo
FindApplyMethods ( object evt ) : IEnumerable

Returns the Apply methods for each type in the event type's inheritance hierarchy, top-down, from interfaces before classes.

FindCurrentVersion ( ) : Guid?
SetParentVersion ( object evt ) : void
ValidateHasId ( ) : void

Method Details

AcceptUncommittedEvents() public method

public AcceptUncommittedEvents ( ) : void
return void

ApplyAll() public method

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

GetUncommittedEvents() public method

public GetUncommittedEvents ( ) : IEnumerable
return IEnumerable

Record() protected method

protected Record ( object evt ) : void
evt object
return void