Table of Contents

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

sessionFactory IPersistenceSessionFactory

Creates a fresh persistence session for every attempt.

options PersistenceConcurrencyOptions

Supplies the maximum attempt count.

timeProvider TimeProvider

Measures the backoff between attempts.

Exceptions

ArgumentOutOfRangeException

Thrown when the configured attempt count is below one.