Interface ITransactionalEventSequence
- Namespace
- Cratis.Chronicle.EventSequences
- Assembly
- Cratis.Chronicle.dll
Defines a transactional event sequence.
public interface ITransactionalEventSequence
Properties
UnitOfWork
Gets the current IUnitOfWork.
IUnitOfWork UnitOfWork { get; }
Property Value
Methods
Append(EventSourceId, object, EventStreamType?, EventStreamId?, EventSourceType?, ConcurrencyScope?)
Append a single event to the event store.
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.
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.