Class BoundedPropagatorBlock<I, O>
- Namespace
- CounterpointCollective.Dataflow
- Assembly
- Dataflow.Composable.dll
A wrapper that enforces a BoundedCapacity on an arbitrary IPropagatorBlock<TInput, TOutput>. See also its base class BoundedTargetBlock<T>.
public class BoundedPropagatorBlock<I, O> : BoundedTargetBlock<I>, IReceivableSourceBlock<O>, IResizablePropagatorBlock<I, O>, IPropagatorBlock<I, O>, ISourceBlock<O>, ITargetBlock<I>, IDataflowBlock
Type Parameters
IO
- Inheritance
-
AbstractEncapsulatedDataflowBlockAbstractEncapsulatedTargetBlock<I>BoundedPropagatorBlock<I, O>
- Implements
-
IPropagatorBlock<I, O>ISourceBlock<O>ITargetBlock<I>
- Inherited Members
- Extension Methods
Constructors
BoundedPropagatorBlock(IPropagatorBlock<I, O>, int, Action?, Action?)
public BoundedPropagatorBlock(IPropagatorBlock<I, O> inner, int boundedCapacity = -1, Action? onEntering = null, Action? onEntered = null)
Parameters
innerIPropagatorBlock<I, O>boundedCapacityintonEnteringActiononEnteredAction
BoundedPropagatorBlock(ITargetBlock<I>, ISourceBlock<O>, int, Action?, Action?)
public BoundedPropagatorBlock(ITargetBlock<I> entrance, ISourceBlock<O> exit, int boundedCapacity = -1, Action? onEntering = null, Action? onEntered = null)
Parameters
entranceITargetBlock<I>exitISourceBlock<O>boundedCapacityintonEnteringActiononEnteredAction