BroadcastBlock<T> Constructor (Func<T, T>, DataflowBlockOptions)

.NET Framework (current version)

Initializes the BroadcastBlock<T> with the specified cloning function and DataflowBlockOptions.

Namespace:  System.Threading.Tasks.Dataflow
Assembly:  System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)

public BroadcastBlock(
	Func<T, T> cloningFunction,
	DataflowBlockOptions dataflowBlockOptions
)

Parameters

cloningFunction
Type: System.Func<T, T>

The function to use to clone the data when offered to other blocks.

dataflowBlockOptions
Type: System.Threading.Tasks.Dataflow.DataflowBlockOptions

The options with which to configure this BroadcastBlock<T>.

ExceptionCondition
ArgumentNullException

The dataflowBlockOptions is null.

.NET Framework

Supported in: 4.5

Portable Class Library

Supported in: Portable Class Library
Show: