Interface IAggregate
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Abstractions.EventSourcing
Assembly: Cephalon.Abstractions.dll
Applies domain events to an aggregate state projection.
public interface IAggregate<TState>Type Parameters
Section titled “Type Parameters”TState
The state shape produced by the aggregate.
Methods
Section titled “Methods”Apply(TState, IDomainEvent)
Section titled “ Apply(TState, IDomainEvent)”Applies one event to the current state and returns the next state snapshot.
TState Apply(TState current, IDomainEvent evt)Parameters
Section titled “Parameters”current TState
The current aggregate state.
evt IDomainEvent
The event to apply.
Returns
Section titled “Returns”TState
The updated aggregate state.