1 write to _batchSize
System.Threading.Tasks.Dataflow (1)
Blocks\BatchBlock.cs (1)
313
_batchSize
= batchSize;
15 references to _batchSize
System.Threading.Tasks.Dataflow (15)
Blocks\BatchBlock.cs (15)
392
(_batchesCompleted + (_messages.Count /
_batchSize
)) >= _dataflowBlockOptions.ActualMaxNumberOfGroups)
473
internal int BatchSize { get { return
_batchSize
; } }
493
_batchSize
;
506
bool noMoreMessages = _decliningPermanently && _messages.Count <
_batchSize
;
571
int neededMessageCountToCompleteBatch =
_batchSize
- _messages.Count;
732
bool fullBatch = _messages.Count >=
_batchSize
;
737
var newBatch = new T[fullBatch ?
_batchSize
: _messages.Count];
777
(!allowFewerThanBatchSize && (postponed.Count <
_batchSize
|| boundedCapacityAvailable <
_batchSize
)))
781
poppedInitially = postponed.PopRange(postponedTemp, 0,
_batchSize
);
782
Debug.Assert(allowFewerThanBatchSize ? poppedInitially > 0 : poppedInitially ==
_batchSize
,
801
while (reserved.Count <
_batchSize
)
816
Debug.Assert(reserved.Count <=
_batchSize
, "Expected the number of reserved sources to be <= the number needed for a batch.");
849
if (shouldProceedToConsume && (allowFewerThanBatchSize || reserved.Count ==
_batchSize
))
890
itemCountNeededToCompleteBatch =
_batchSize
- _messages.Count;