C# Class Ncqrs.Eventing.Sourcing.EventSource

Inheritance: IEventSource
Mostra file Open project: SzymonPobiega/ncqrs

Public Methods

Method Description
AcceptChanges ( ) : void
GetUncommittedEvents ( ) : IEnumerable
InitializeFromHistory ( IEnumerable history ) : void

Initializes from history.

Protected Methods

Method Description
ApplyEvent ( SourcedEvent evnt ) : void
EventSource ( ) : System

Initializes a new instance of the EventSource class.

HandleEvent ( SourcedEvent evnt ) : void
OnEventApplied ( SourcedEvent appliedEvent ) : void
RegisterHandler ( ISourcedEventHandler handler ) : void

Private Methods

Method Description
ApplyEventFromHistory ( SourcedEvent evnt ) : void
ContractInvariants ( ) : void

Method Details

AcceptChanges() public method

public AcceptChanges ( ) : void
return void

ApplyEvent() protected method

protected ApplyEvent ( SourcedEvent evnt ) : void
evnt SourcedEvent
return void

EventSource() protected method

Initializes a new instance of the EventSource class.
protected EventSource ( ) : System
return System

GetUncommittedEvents() public method

public GetUncommittedEvents ( ) : IEnumerable
return IEnumerable

HandleEvent() protected method

protected HandleEvent ( SourcedEvent evnt ) : void
evnt SourcedEvent
return void

InitializeFromHistory() public method

Initializes from history.
public InitializeFromHistory ( IEnumerable history ) : void
history IEnumerable The history.
return void

OnEventApplied() protected method

protected OnEventApplied ( SourcedEvent appliedEvent ) : void
appliedEvent SourcedEvent
return void

RegisterHandler() protected method

protected RegisterHandler ( ISourcedEventHandler handler ) : void
handler ISourcedEventHandler
return void