Edytuj

Udostępnij za pośrednictwem


BroadcastBlock<T> Constructors

Definition

Overloads

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

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

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

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

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

Source:
BroadcastBlock.cs
Source:
BroadcastBlock.cs
Source:
BroadcastBlock.cs
Source:
BroadcastBlock.cs

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

public:
 BroadcastBlock(Func<T, T> ^ cloningFunction);
public BroadcastBlock (Func<T,T> cloningFunction);
public BroadcastBlock (Func<T,T>? cloningFunction);
new System.Threading.Tasks.Dataflow.BroadcastBlock<'T> : Func<'T, 'T> -> System.Threading.Tasks.Dataflow.BroadcastBlock<'T>
Public Sub New (cloningFunction As Func(Of T, T))

Parameters

cloningFunction
Func<T,T>

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

Applies to

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

Source:
BroadcastBlock.cs
Source:
BroadcastBlock.cs
Source:
BroadcastBlock.cs
Source:
BroadcastBlock.cs

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

public:
 BroadcastBlock(Func<T, T> ^ cloningFunction, System::Threading::Tasks::Dataflow::DataflowBlockOptions ^ dataflowBlockOptions);
public BroadcastBlock (Func<T,T> cloningFunction, System.Threading.Tasks.Dataflow.DataflowBlockOptions dataflowBlockOptions);
public BroadcastBlock (Func<T,T>? cloningFunction, System.Threading.Tasks.Dataflow.DataflowBlockOptions dataflowBlockOptions);
new System.Threading.Tasks.Dataflow.BroadcastBlock<'T> : Func<'T, 'T> * System.Threading.Tasks.Dataflow.DataflowBlockOptions -> System.Threading.Tasks.Dataflow.BroadcastBlock<'T>
Public Sub New (cloningFunction As Func(Of T, T), dataflowBlockOptions As DataflowBlockOptions)

Parameters

cloningFunction
Func<T,T>

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

dataflowBlockOptions
DataflowBlockOptions

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

Exceptions

The dataflowBlockOptions is null.

Applies to