1 write to _dataflowBlockOptions
System.Threading.Tasks.Dataflow (1)
Blocks\BatchBlock.cs (1)
318
_dataflowBlockOptions
= dataflowBlockOptions;
21 references to _dataflowBlockOptions
System.Threading.Tasks.Dataflow (21)
Blocks\BatchBlock.cs (21)
322
if (!
_dataflowBlockOptions
.Greedy || boundingEnabled) _nonGreedyState = new NonGreedyState(batchSize);
335
if (!_decliningPermanently && !
_dataflowBlockOptions
.CancellationToken.IsCancellationRequested)
373
if (
_dataflowBlockOptions
.Greedy &&
395
(_batchesCompleted + (_messages.Count / _batchSize)) >=
_dataflowBlockOptions
.ActualMaxNumberOfGroups)
415
if (!
_dataflowBlockOptions
.Greedy) ProcessAsyncIfNecessary();
483
return
_dataflowBlockOptions
.CancellationToken.IsCancellationRequested || _owningBatch._source.HasExceptions;
495
_dataflowBlockOptions
.BoundedCapacity - _boundingState.CurrentCount :
508
bool completedAllDesiredBatches = _batchesCompleted >=
_dataflowBlockOptions
.ActualMaxNumberOfGroups;
568
bool completedAllDesiredBatches = _batchesCompleted >=
_dataflowBlockOptions
.ActualMaxNumberOfGroups;
595
if (
_dataflowBlockOptions
.Greedy)
653
Exception? exception = Common.StartTaskSafe(_nonGreedyState.TaskForInputProcessing,
_dataflowBlockOptions
.TaskScheduler);
670
int maxMessagesPerTask =
_dataflowBlockOptions
.ActualMaxMessagesPerTask;
684
if (!
_dataflowBlockOptions
.Greedy) RetrievePostponedItemsNonGreedy(allowFewerThanBatchSize: triggered);
744
if (_batchesCompleted >=
_dataflowBlockOptions
.ActualMaxNumberOfGroups) _decliningPermanently = true;
755
Debug.Assert(!
_dataflowBlockOptions
.Greedy, "This method may only be used in non-greedy mode.");
840
(_batchesCompleted + 1) >=
_dataflowBlockOptions
.ActualMaxNumberOfGroups)
872
Debug.Assert(
_dataflowBlockOptions
.Greedy, "This method may only be used in greedy mode.");
952
(_batchesCompleted + 1) >=
_dataflowBlockOptions
.ActualMaxNumberOfGroups)
981
Debug.Assert(!
_dataflowBlockOptions
.Greedy, "This method may only be used in non-greedy mode.");
1031
Debug.Assert(
_dataflowBlockOptions
.Greedy, "This method may only be used in greedy mode.");
1188
public GroupingDataflowBlockOptions DataflowBlockOptions { get { return _target.
_dataflowBlockOptions
; } }