24 references to Count
System.Threading.Tasks.Dataflow (24)
Blocks\BatchBlock.cs (8)
373
(_boundingState.CountIsLessThanBound && _nonGreedyState!.PostponedMessages.
Count
== 0 && _nonGreedyState.TaskForInputProcessing == null)))
589
if (_nonGreedyState.AcceptFewerThanBatchSize && _nonGreedyState.PostponedMessages.
Count
> 0 && boundedCapacityAvailable > 0)
599
if (_nonGreedyState.PostponedMessages.
Count
> 0 && boundedCapacityAvailable > 0) return true;
604
if (_nonGreedyState.PostponedMessages.
Count
>= neededMessageCountToCompleteBatch &&
646
_messages.Count + _nonGreedyState.PostponedMessages.
Count
);
775
postponed.
Count
== 0 ||
777
(!allowFewerThanBatchSize && (postponed.
Count
< _batchSize || boundedCapacityAvailable < _batchSize)))
892
postponed.
Count
== 0 ||
Blocks\BroadcastBlock.cs (4)
183
(_boundingState.CountIsLessThanBound && _boundingState.PostponedMessages.
Count
== 0 && _boundingState.TaskForInputProcessing == null))
248
_boundingState.PostponedMessages.
Count
> 0 &&
262
_boundingState.PostponedMessages.
Count
);
380
if (_boundingState != null && _boundingState.PostponedMessages.
Count
> 0)
Blocks\BufferBlock.cs (4)
111
(_boundingState.CountIsLessThanBound && _boundingState.PostponedMessages.
Count
== 0 && _boundingState.TaskForInputProcessing == null))
249
_boundingState.PostponedMessages.
Count
> 0 &&
263
_boundingState.PostponedMessages.
Count
);
383
if (_boundingState != null && _boundingState.PostponedMessages.
Count
> 0)
Blocks\JoinBlock.cs (3)
565
return _nonGreedy != null && _nonGreedy.PostponedMessages.
Count
> 0;
575
return !_sharedResources._dataflowBlockOptions.Greedy ? _nonGreedy!.PostponedMessages.
Count
: _messages!.Count;
839
_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));