Table of Contents

Class OrderPreservingChoiceBlock<TInput, TOutput>

Namespace
CounterpointCollective.Dataflow
Assembly
Dataflow.Composable.dll
public class OrderPreservingChoiceBlock<TInput, TOutput> : AbstractEncapsulatedPropagatorBlock<TInput, TOutput>, IReceivableSourceBlock<TOutput>, IResizablePropagatorBlock<TInput, TOutput>, IPropagatorBlock<TInput, TOutput>, ISourceBlock<TOutput>, ITargetBlock<TInput>, IDataflowBlock

Type Parameters

TInput
TOutput
Inheritance
AbstractEncapsulatedSourceBlock<TOutput>
AbstractEncapsulatedPropagatorBlock<TInput, TOutput>
OrderPreservingChoiceBlock<TInput, TOutput>
Implements
IResizablePropagatorBlock<TInput, TOutput>
IPropagatorBlock<TInput, TOutput>
ISourceBlock<TOutput>
ITargetBlock<TInput>
Inherited Members
Extension Methods

Constructors

OrderPreservingChoiceBlock(Predicate<TInput>, IPropagatorBlock<TInput, TOutput>, IPropagatorBlock<TInput, TOutput>, ExecutionDataflowBlockOptions?)

public OrderPreservingChoiceBlock(Predicate<TInput> predicate, IPropagatorBlock<TInput, TOutput> thenBlock, IPropagatorBlock<TInput, TOutput> elseBlock, ExecutionDataflowBlockOptions? options = null)

Parameters

predicate Predicate<TInput>
thenBlock IPropagatorBlock<TInput, TOutput>
elseBlock IPropagatorBlock<TInput, TOutput>
options ExecutionDataflowBlockOptions

Properties

BoundedCapacity

public int BoundedCapacity { get; set; }

Property Value

int

Count

public int Count { get; }

Property Value

int

InputCount

public int InputCount { get; }

Property Value

int

OutputCount

public int OutputCount { get; }

Property Value

int

SourceSide

protected override ISourceBlock<TOutput> SourceSide { get; }

Property Value

ISourceBlock<TOutput>

TargetSide

protected override ITargetBlock<TInput> TargetSide { get; }

Property Value

ITargetBlock<TInput>