Table of Contents

Class AggregateRootContext

Namespace
Cratis.Chronicle.Aggregates
Assembly
Cratis.Chronicle.dll

Represents an implementation of IAggregateRootContext.

public class AggregateRootContext : IAggregateRootContext
Inheritance
AggregateRootContext
Implements
Inherited Members

Constructors

AggregateRootContext(EventSourceType, EventSourceId, EventStreamType, EventStreamId, IEventSequence, IAggregateRoot, IUnitOfWork, EventSequenceNumber)

Represents an implementation of IAggregateRootContext.

public AggregateRootContext(EventSourceType eventSourceType, EventSourceId eventSourceId, EventStreamType eventStreamType, EventStreamId eventStreamId, IEventSequence eventSequence, IAggregateRoot aggregateRoot, IUnitOfWork unitOfWork, EventSequenceNumber nextSequenceNumber)

Parameters

eventSourceType EventSourceType

The EventSourceType for the context.

eventSourceId EventSourceId

The EventSourceId for the context.

eventStreamType EventStreamType

The EventStreamType for the context.

eventStreamId EventStreamId

The EventStreamId for the context.

eventSequence IEventSequence

The IEventSequence for the context.

aggregateRoot IAggregateRoot

The IAggregateRoot for the context.

unitOfWork IUnitOfWork

The IUnitOfWork for the context.

nextSequenceNumber EventSequenceNumber

The next EventSequenceNumber.

Properties

AggregateRoot

Gets the IAggregateRoot for the context.

public IAggregateRoot AggregateRoot { get; }

Property Value

IAggregateRoot

EventSequence

Gets the EventSequenceId for the context.

public IEventSequence EventSequence { get; }

Property Value

IEventSequence

EventSourceId

Gets the EventSourceId for the context.

public EventSourceId EventSourceId { get; }

Property Value

EventSourceId

EventSourceType

Gets the EventSourceType for the context.

public EventSourceType EventSourceType { get; }

Property Value

EventSourceType

EventStreamId

Gets the EventStreamId for the context.

public EventStreamId EventStreamId { get; }

Property Value

EventStreamId

EventStreamType

Gets the EventStreamType for the context.

public EventStreamType EventStreamType { get; }

Property Value

EventStreamType

HasEvents

Gets a value indicating whether aggregate root has events.

public 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.

public EventSequenceNumber NextSequenceNumber { get; set; }

Property Value

EventSequenceNumber

UnitOfWOrk

Gets the IUnitOfWork for the context.

public IUnitOfWork UnitOfWOrk { get; }

Property Value

IUnitOfWork