4 writes to BoundedCapacity
System.Threading.Tasks.Dataflow (4)
Base\DataflowBlock.cs (1)
2244
private static readonly ExecutionDataflowBlockOptions _nonGreedyExecutionOptions = new ExecutionDataflowBlockOptions {
BoundedCapacity
= 1 };
Base\DataflowBlockOptions.cs (3)
98
BoundedCapacity
= this.BoundedCapacity,
269
BoundedCapacity
= this.BoundedCapacity,
401
BoundedCapacity
= this.BoundedCapacity,
28 references to BoundedCapacity
System.Threading.Tasks.Dataflow (28)
Base\DataflowBlockOptions.cs (3)
98
BoundedCapacity = this.
BoundedCapacity
,
269
BoundedCapacity = this.
BoundedCapacity
,
401
BoundedCapacity = this.
BoundedCapacity
,
Blocks\ActionBlock.cs (1)
90
dataflowBlockOptions.
BoundedCapacity
== DataflowBlockOptions.Unbounded)
Blocks\BatchBlock.cs (6)
51
if (dataflowBlockOptions.
BoundedCapacity
> 0 && dataflowBlockOptions.
BoundedCapacity
< batchSize) throw new ArgumentOutOfRangeException(nameof(batchSize), SR.ArgumentOutOfRange_BatchSizeMustBeNoGreaterThanBoundedCapacity);
59
if (dataflowBlockOptions.
BoundedCapacity
> 0)
321
bool boundingEnabled = dataflowBlockOptions.
BoundedCapacity
> 0;
323
if (boundingEnabled) _boundingState = new BoundingState(dataflowBlockOptions.
BoundedCapacity
);
495
_dataflowBlockOptions.
BoundedCapacity
- _boundingState.CurrentCount :
Blocks\BatchedJoinBlock.cs (2)
60
if (dataflowBlockOptions.
BoundedCapacity
!= DataflowBlockOptions.Unbounded) throw new ArgumentException(SR.Argument_BoundedCapacityNotSupported, nameof(dataflowBlockOptions));
308
dataflowBlockOptions.
BoundedCapacity
!= DataflowBlockOptions.Unbounded)
Blocks\BroadcastBlock.cs (3)
77
if (dataflowBlockOptions.
BoundedCapacity
> 0)
79
Debug.Assert(dataflowBlockOptions.
BoundedCapacity
> 0, "Positive bounding count expected; should have been verified by options ctor");
81
_boundingState = new BoundingStateWithPostponedAndTask<T>(dataflowBlockOptions.
BoundedCapacity
);
Blocks\BufferBlock.cs (2)
58
if (dataflowBlockOptions.
BoundedCapacity
> 0)
61
_boundingState = new BoundingStateWithPostponedAndTask<T>(dataflowBlockOptions.
BoundedCapacity
);
Blocks\JoinBlock.cs (5)
62
if (dataflowBlockOptions.
BoundedCapacity
> 0) onItemsRemoved = static (owningSource, count) => ((JoinBlock<T1, T2>)owningSource)._sharedResources.OnItemsRemoved(count);
289
if (dataflowBlockOptions.
BoundedCapacity
> 0) onItemsRemoved = static (owningSource, count) => ((JoinBlock<T1, T2, T3>)owningSource)._sharedResources.OnItemsRemoved(count);
519
if (!dbo.Greedy || dbo.
BoundedCapacity
> 0) _nonGreedy = new NonGreedyState();
1057
if (dataflowBlockOptions.
BoundedCapacity
> 0) _boundingState = new BoundingState(dataflowBlockOptions.
BoundedCapacity
);
Blocks\TransformBlock.cs (1)
108
if (dataflowBlockOptions.
BoundedCapacity
> 0)
Blocks\TransformManyBlock.cs (1)
113
if (dataflowBlockOptions.
BoundedCapacity
> 0)
Internal\TargetCore.cs (4)
127
if (_dataflowBlockOptions.
BoundedCapacity
!= System.Threading.Tasks.Dataflow.DataflowBlockOptions.Unbounded)
129
Debug.Assert(_dataflowBlockOptions.
BoundedCapacity
> 0, "Positive bounding count expected; should have been verified by options ctor");
130
_boundingState = new BoundingStateWithPostponed<TInput>(_dataflowBlockOptions.
BoundedCapacity
);
616
_dataflowBlockOptions.
BoundedCapacity
!=