24 references to Count
System.Threading.Tasks.Dataflow (24)
Blocks\BatchBlock.cs (8)
376
(_boundingState.CountIsLessThanBound && _nonGreedyState!.PostponedMessages.
Count
== 0 && _nonGreedyState.TaskForInputProcessing == null)))
592
if (_nonGreedyState.AcceptFewerThanBatchSize && _nonGreedyState.PostponedMessages.
Count
> 0 && boundedCapacityAvailable > 0)
602
if (_nonGreedyState.PostponedMessages.
Count
> 0 && boundedCapacityAvailable > 0) return true;
607
if (_nonGreedyState.PostponedMessages.
Count
>= neededMessageCountToCompleteBatch &&
649
_messages.Count + _nonGreedyState.PostponedMessages.
Count
);
778
postponed.
Count
== 0 ||
780
(!allowFewerThanBatchSize && (postponed.
Count
< _batchSize || boundedCapacityAvailable < _batchSize)))
895
postponed.
Count
== 0 ||
Blocks\BroadcastBlock.cs (4)
189
(_boundingState.CountIsLessThanBound && _boundingState.PostponedMessages.
Count
== 0 && _boundingState.TaskForInputProcessing == null))
254
_boundingState.PostponedMessages.
Count
> 0 &&
268
_boundingState.PostponedMessages.
Count
);
386
if (_boundingState != null && _boundingState.PostponedMessages.
Count
> 0)
Blocks\BufferBlock.cs (4)
114
(_boundingState.CountIsLessThanBound && _boundingState.PostponedMessages.
Count
== 0 && _boundingState.TaskForInputProcessing == null))
255
_boundingState.PostponedMessages.
Count
> 0 &&
269
_boundingState.PostponedMessages.
Count
);
389
if (_boundingState != null && _boundingState.PostponedMessages.
Count
> 0)
Blocks\JoinBlock.cs (3)
577
return _nonGreedy != null && _nonGreedy.PostponedMessages.
Count
> 0;
587
return !_sharedResources._dataflowBlockOptions.Greedy ? _nonGreedy!.PostponedMessages.
Count
: _messages!.Count;
851
_nonGreedy!.PostponedMessages.
Count
== 0 && _sharedResources._taskForInputProcessing == null)))
Internal\Common.cs (2)
507
int initialCount = postponedMessages.
Count
;
667
private int PostponedMessagesCountForDebugger { get { return PostponedMessages.
Count
; } }
Internal\TargetCore.cs (3)
203
(_boundingState.OutstandingTransfers == 0 && _boundingState.CountIsLessThanBound && _boundingState.PostponedMessages.
Count
== 0))
360
(!_decliningPermanently && _boundingState != null && _boundingState.CountIsLessThanBound && _boundingState.PostponedMessages.
Count
> 0);
380
_messages.Count + (_boundingState != null ? _boundingState.PostponedMessages.
Count
: 0));