public async Task CommitAsync(CancellationToken cancellation = default) { await Retryer.RetryAsync(async() => await _session.CommitTransactionAsync(cancellation)); _onCompleted(true); _isCompleted = true; }
public void Commit(Enlistment enlistment) { Retryer.Retry(() => _session.CommitTransaction(), _maxRetries); enlistment.Done(); }
public Task RetryAsync(Func <Task> transactionBody, int maxRetries = default) => Retryer.RetryAsync(transactionBody, maxRetries);