Class TransactionalEventSequence
- Namespace
- Cratis.Chronicle.EventSequences
- Assembly
- Cratis.Chronicle.dll
Represents an implementation of ITransactionalEventSequence.
public class TransactionalEventSequence : ITransactionalEventSequence
- Inheritance
-
TransactionalEventSequence
- Implements
- Inherited Members
Constructors
TransactionalEventSequence(IEventSequence, IUnitOfWorkManager)
Represents an implementation of ITransactionalEventSequence.
public TransactionalEventSequence(IEventSequence eventSequence, IUnitOfWorkManager unitOfWorkManager)
Parameters
eventSequenceIEventSequenceThe target IEventSequence.
unitOfWorkManagerIUnitOfWorkManagerIUnitOfWorkManager for working with the unit of work.
Fields
CausationType
The causation type for the transactional event sequence.
public static readonly CausationType CausationType
Field Value
TransactionalEventSequenceIdProperty
The event sequence id causation property.
public const string TransactionalEventSequenceIdProperty = "eventSequenceId"
Field Value
Properties
UnitOfWork
Gets the current IUnitOfWork.
public IUnitOfWork UnitOfWork { get; }
Property Value
Methods
Append(EventSourceId, object, EventStreamType?, EventStreamId?, EventSourceType?, ConcurrencyScope?)
Append a single event to the event store.
public Task Append(EventSourceId eventSourceId, object @event, EventStreamType? eventStreamType = null, EventStreamId? eventStreamId = null, EventSourceType? eventSourceType = null, ConcurrencyScope? concurrencyScope = null)
Parameters
eventSourceIdEventSourceIdThe EventSourceId to append for.
eventobjectThe event.
eventStreamTypeEventStreamTypeOptional EventStreamType to append to. Defaults to All.
eventStreamIdEventStreamIdOptional EventStreamId to append to. Defaults to Default.
eventSourceTypeEventSourceTypeOptional EventSourceType to append to. Defaults to Default.
concurrencyScopeConcurrencyScopeOptional ConcurrencyScope to use for concurrency control. Defaults to None.
Returns
AppendMany(EventSourceId, IEnumerable<object>, EventStreamType?, EventStreamId?, EventSourceType?, ConcurrencyScope?)
Append a collection of events to the event store.
public Task AppendMany(EventSourceId eventSourceId, IEnumerable<object> events, EventStreamType? eventStreamType = null, EventStreamId? eventStreamId = null, EventSourceType? eventSourceType = null, ConcurrencyScope? concurrencyScope = null)
Parameters
eventSourceIdEventSourceIdThe EventSourceId to append for.
eventsIEnumerable<object>Collection of events to append.
eventStreamTypeEventStreamTypeOptional EventStreamType to append to. Defaults to All.
eventStreamIdEventStreamIdOptional EventStreamId to append to. Defaults to Default.
eventSourceTypeEventSourceTypeOptional EventSourceType to append to. Defaults to Default.
concurrencyScopeConcurrencyScopeOptional ConcurrencyScope to use for concurrency control. Defaults to None.