Aggregate<'TState, 'TCommand, 'TEvent> Type
C#-friendly abstract base for an event-sourced aggregate. A concrete aggregate supplies only InitialState, EntityName, HandleCommand (the decision) and ApplyEvent (the fold); the base provides the wiring (Init). Designed to be subclassed from C#.
Constructors
| Constructor | Description |
|
|
Instance members
| Instance member | Description |
Full Usage:
this.ApplyEvent
Parameters:
Event<'TEvent>
arg1 : 'TState
Returns: 'TState
Modifiers: abstract |
|
Full Usage:
this.EntityName
Returns: string
Modifiers: abstract |
|
Full Usage:
this.HandleCommand
Parameters:
Command<'TCommand>
arg1 : 'TState
Returns: EventAction<'TEvent>
Modifiers: abstract |
|
|
|
Full Usage:
this.Init
Parameters:
IActor
snapshotPolicy : SnapshotPolicy
Returns: AggregateRefs<'TCommand, 'TEvent>
|
|
Full Usage:
this.InitialState
Returns: 'TState
Modifiers: abstract |
|
|
|
FCQRS