コード例 #1
0
        public async Task CommitAsync(CancellationToken cancellation = default)
        {
            await Retryer.RetryAsync(async() => await _session.CommitTransactionAsync(cancellation));

            _onCompleted(true);
            _isCompleted = true;
        }
コード例 #2
0
 public Task RetryAsync(Func <Task> transactionBody, int maxRetries = default) =>
 Retryer.RetryAsync(transactionBody, maxRetries);