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

            _onCompleted(true);
            _isCompleted = true;
        }
示例#2
0
 public void Commit(Enlistment enlistment)
 {
     Retryer.Retry(() => _session.CommitTransaction(), _maxRetries);
     enlistment.Done();
 }
示例#3
0
 public Task RetryAsync(Func <Task> transactionBody, int maxRetries = default) =>
 Retryer.RetryAsync(transactionBody, maxRetries);