Table of Contents

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

IAggregateRoot

EventSequence

Gets the EventSequenceId for the context.

IEventSequence EventSequence { get; }

Property Value

IEventSequence

EventSourceId

Gets the EventSourceId for the context.

EventSourceId EventSourceId { get; }

Property Value

EventSourceId

EventSourceType

Gets the EventSourceType for the context.

EventSourceType EventSourceType { get; }

Property Value

EventSourceType

EventStreamId

Gets the EventStreamId for the context.

EventStreamId EventStreamId { get; }

Property Value

EventStreamId

EventStreamType

Gets the EventStreamType for the context.

EventStreamType EventStreamType { get; }

Property Value

EventStreamType

HasEvents

Gets a value indicating whether aggregate root has events.

bool HasEvents { get; set; }

Property Value

bool

NextSequenceNumber

Gets or sets the next EventSequenceNumber to process for the aggregate root in the unit of work.

EventSequenceNumber NextSequenceNumber { get; set; }

Property Value

EventSequenceNumber

UnitOfWOrk

Gets the IUnitOfWork for the context.

IUnitOfWork UnitOfWOrk { get; }

Property Value

IUnitOfWork