Interface IAggregateRootContext
- Namespace
- Cratis.Chronicle.Aggregates
- Assembly
- Cratis.Chronicle.dll
Defines the context for an aggregate root.
public interface IAggregateRootContext
Properties
AggregateRoot
Gets the IAggregateRoot for the context.
IAggregateRoot AggregateRoot { get; }
Property Value
EventSequence
Gets the EventSequenceId for the context.
IEventSequence EventSequence { get; }
Property Value
EventSourceId
Gets the EventSourceId for the context.
EventSourceId EventSourceId { get; }
Property Value
EventSourceType
Gets the EventSourceType for the context.
EventSourceType EventSourceType { get; }
Property Value
EventStreamId
Gets the EventStreamId for the context.
EventStreamId EventStreamId { get; }
Property Value
EventStreamType
Gets the EventStreamType for the context.
EventStreamType EventStreamType { get; }
Property Value
HasEvents
Gets a value indicating whether aggregate root has events.
bool HasEvents { get; set; }
Property Value
NextSequenceNumber
Gets or sets the next EventSequenceNumber to process for the aggregate root in the unit of work.
EventSequenceNumber NextSequenceNumber { get; set; }
Property Value
UnitOfWOrk
Gets the IUnitOfWork for the context.
IUnitOfWork UnitOfWOrk { get; }