Table of Contents

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

eventSourceId EventSourceId

The EventSourceId to scope to.

eventStreamType EventStreamType

Optional EventStreamType to scope to. Defaults to All.

eventStreamId EventStreamId

Optional EventStreamId to scope to. Defaults to Default.

eventSourceType EventSourceType

Optional EventSourceType to scope to. Defaults to Default.

eventTypes IEnumerable<EventType>

Optional collection of EventType to scope to. Defaults to no specific event types.

Returns

Task<ConcurrencyScope>

The ConcurrencyScope.