Constructor OptimisticConcurrencyRetryPolicy
- Namespace
- MailFathom.Application.Persistence
- Assembly
- MailFathom.Application.dll
OptimisticConcurrencyRetryPolicy(IPersistenceSessionFactory, PersistenceConcurrencyOptions, TimeProvider)
Initializes a retry policy from the deployment-wide concurrency bound.
public OptimisticConcurrencyRetryPolicy(IPersistenceSessionFactory sessionFactory, PersistenceConcurrencyOptions options, TimeProvider timeProvider)
Parameters
sessionFactoryIPersistenceSessionFactoryCreates a fresh persistence session for every attempt.
optionsPersistenceConcurrencyOptionsSupplies the maximum attempt count.
timeProviderTimeProviderMeasures the backoff between attempts.
Exceptions
- ArgumentOutOfRangeException
Thrown when the configured attempt count is below one.