Class ConcurrencyScopeStrategies
- Namespace
- Cratis.Chronicle.EventSequences.Concurrency
- Assembly
- Cratis.Chronicle.dll
Represents an implementation of IConcurrencyScopeStrategies that provides concurrency strategies based on configuration options.
public class ConcurrencyScopeStrategies : IConcurrencyScopeStrategies
- Inheritance
-
ConcurrencyScopeStrategies
- Implements
- Inherited Members
Constructors
ConcurrencyScopeStrategies(ConcurrencyOptions, IServiceProvider)
Represents an implementation of IConcurrencyScopeStrategies that provides concurrency strategies based on configuration options.
public ConcurrencyScopeStrategies(ConcurrencyOptions options, IServiceProvider serviceProvider)
Parameters
optionsConcurrencyOptionsThe ConcurrencyOptions containing the concurrency configuration.
serviceProviderIServiceProviderThe IServiceProvider to resolve the concurrency strategy.
Methods
GetFor(IEventSequence)
Gets the appropriate IConcurrencyScopeStrategy for the given IEventSequence.
public IConcurrencyScopeStrategy GetFor(IEventSequence eventSequence)
Parameters
eventSequenceIEventSequenceThe IEventSequence for which to get the concurrency scope strategy.
Returns
- IConcurrencyScopeStrategy
An instance of IConcurrencyScopeStrategy that can be used to manage concurrency for the specified event sequence.