1 write to _dataflowBlockOptions
System.Threading.Tasks.Dataflow (1)
Blocks\BatchBlock.cs (1)
315
_dataflowBlockOptions
= dataflowBlockOptions;
21 references to _dataflowBlockOptions
System.Threading.Tasks.Dataflow (21)
Blocks\BatchBlock.cs (21)
319
if (!
_dataflowBlockOptions
.Greedy || boundingEnabled) _nonGreedyState = new NonGreedyState(batchSize);
332
if (!_decliningPermanently && !
_dataflowBlockOptions
.CancellationToken.IsCancellationRequested)
370
if (
_dataflowBlockOptions
.Greedy &&
392
(_batchesCompleted + (_messages.Count / _batchSize)) >=
_dataflowBlockOptions
.ActualMaxNumberOfGroups)
412
if (!
_dataflowBlockOptions
.Greedy) ProcessAsyncIfNecessary();
480
return
_dataflowBlockOptions
.CancellationToken.IsCancellationRequested || _owningBatch._source.HasExceptions;
492
_dataflowBlockOptions
.BoundedCapacity - _boundingState.CurrentCount :
505
bool completedAllDesiredBatches = _batchesCompleted >=
_dataflowBlockOptions
.ActualMaxNumberOfGroups;
565
bool completedAllDesiredBatches = _batchesCompleted >=
_dataflowBlockOptions
.ActualMaxNumberOfGroups;
592
if (
_dataflowBlockOptions
.Greedy)
650
Exception? exception = Common.StartTaskSafe(_nonGreedyState.TaskForInputProcessing,
_dataflowBlockOptions
.TaskScheduler);
667
int maxMessagesPerTask =
_dataflowBlockOptions
.ActualMaxMessagesPerTask;
681
if (!
_dataflowBlockOptions
.Greedy) RetrievePostponedItemsNonGreedy(allowFewerThanBatchSize: triggered);
741
if (_batchesCompleted >=
_dataflowBlockOptions
.ActualMaxNumberOfGroups) _decliningPermanently = true;
752
Debug.Assert(!
_dataflowBlockOptions
.Greedy, "This method may only be used in non-greedy mode.");
837
(_batchesCompleted + 1) >=
_dataflowBlockOptions
.ActualMaxNumberOfGroups)
869
Debug.Assert(
_dataflowBlockOptions
.Greedy, "This method may only be used in greedy mode.");
949
(_batchesCompleted + 1) >=
_dataflowBlockOptions
.ActualMaxNumberOfGroups)
978
Debug.Assert(!
_dataflowBlockOptions
.Greedy, "This method may only be used in non-greedy mode.");
1028
Debug.Assert(
_dataflowBlockOptions
.Greedy, "This method may only be used in greedy mode.");
1185
public GroupingDataflowBlockOptions DataflowBlockOptions { get { return _target.
_dataflowBlockOptions
; } }