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
EventSourceTypeThe EventSourceType for the context.
eventSourceId
EventSourceIdThe EventSourceId for the context.
eventStreamType
EventStreamTypeThe EventStreamType for the context.
eventStreamId
EventStreamIdThe EventStreamId for the context.
eventSequence
IEventSequenceThe IEventSequence for the context.
aggregateRoot
IAggregateRootThe IAggregateRoot for the context.
unitOfWork
IUnitOfWorkThe IUnitOfWork for the context.
nextSequenceNumber
EventSequenceNumberThe next EventSequenceNumber.
Properties
AggregateRoot
Gets the IAggregateRoot for the context.
public IAggregateRoot AggregateRoot { get; }
Property Value
EventSequence
Gets the EventSequenceId for the context.
public IEventSequence EventSequence { get; }
Property Value
EventSourceId
Gets the EventSourceId for the context.
public EventSourceId EventSourceId { get; }
Property Value
EventSourceType
Gets the EventSourceType for the context.
public EventSourceType EventSourceType { get; }
Property Value
EventStreamId
Gets the EventStreamId for the context.
public EventStreamId EventStreamId { get; }
Property Value
EventStreamType
Gets the EventStreamType for the context.
public EventStreamType EventStreamType { get; }
Property Value
HasEvents
Gets a value indicating whether aggregate root has events.
public bool HasEvents { get; set; }
Property Value
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
UnitOfWOrk
Gets the IUnitOfWork for the context.
public IUnitOfWork UnitOfWOrk { get; }