Interface IConcurrencyScopeStrategy
- Namespace
- Cratis.Chronicle.EventSequences.Concurrency
- Assembly
- Cratis.Chronicle.dll
Defines a strategy for managing concurrency scopes.
public interface IConcurrencyScopeStrategy
Methods
GetScope(EventSourceId, EventStreamType?, EventStreamId?, EventSourceType?, IEnumerable<EventType>?)
Gets a ConcurrencyScope for the specified parameters.
Task<ConcurrencyScope> GetScope(EventSourceId eventSourceId, EventStreamType? eventStreamType = null, EventStreamId? eventStreamId = null, EventSourceType? eventSourceType = null, IEnumerable<EventType>? eventTypes = null)
Parameters
eventSourceIdEventSourceIdThe EventSourceId to scope to.
eventStreamTypeEventStreamTypeOptional EventStreamType to scope to. Defaults to All.
eventStreamIdEventStreamIdOptional EventStreamId to scope to. Defaults to Default.
eventSourceTypeEventSourceTypeOptional EventSourceType to scope to. Defaults to Default.
eventTypesIEnumerable<EventType>Optional collection of EventType to scope to. Defaults to no specific event types.