Beispiel #1
0
        public WorkItemResult Do(CancellationToken cancellationToken)
        {
            var result = _workItem.Do(cancellationToken);

            _batch.DoFinally(result, cancellationToken);

            return(new WorkItemResult(WorkStatus.Successful));
        }
Beispiel #2
0
 public void DoFinally(WorkItemResult result, CancellationToken cancellationToken)
 {
     _workBatch.DoFinally(result, cancellationToken);
     _barrier?.Wait(cancellationToken);
 }