public async Task CommitAsync(CancellationToken cancellation = default) { await Retryer.RetryAsync(async() => await _session.CommitTransactionAsync(cancellation)); _onCompleted(true); _isCompleted = true; }
public Task RetryAsync(Func <Task> transactionBody, int maxRetries = default) => Retryer.RetryAsync(transactionBody, maxRetries);