اقرأ باللغة الإنجليزية تحرير

مشاركة عبر


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.

C#
public BroadcastBlock(Func<T,T> cloningFunction);
C#
public BroadcastBlock(Func<T,T>? cloningFunction);

Parameters

cloningFunction
Func<T,T>

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

Applies to

.NET 10 والإصدارات الأخرى
منتج الإصدارات
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
UWP 10.0

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.

C#
public BroadcastBlock(Func<T,T> cloningFunction, System.Threading.Tasks.Dataflow.DataflowBlockOptions dataflowBlockOptions);
C#
public BroadcastBlock(Func<T,T>? cloningFunction, System.Threading.Tasks.Dataflow.DataflowBlockOptions 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

.NET 10 والإصدارات الأخرى
منتج الإصدارات
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided), 2.1 (package-provided)
UWP 10.0