TransformManyBlock<TInput,TOutput> 构造函数

定义

重载

TransformManyBlock<TInput,TOutput>(Func<TInput,IAsyncEnumerable<TOutput>>)

TransformManyBlock<TInput,TOutput>使用指定的函数初始化 。

TransformManyBlock<TInput,TOutput>(Func<TInput,IEnumerable<TOutput>>)

使用指定的函数初始化新的 TransformManyBlock<TInput,TOutput>

TransformManyBlock<TInput,TOutput>(Func<TInput,Task<IEnumerable<TOutput>>>)

使用指定的函数初始化新的 TransformManyBlock<TInput,TOutput>

TransformManyBlock<TInput,TOutput>(Func<TInput,IAsyncEnumerable<TOutput>>, ExecutionDataflowBlockOptions)

TransformManyBlock<TInput,TOutput>使用指定的函数 和 ExecutionDataflowBlockOptions初始化 。

TransformManyBlock<TInput,TOutput>(Func<TInput,IEnumerable<TOutput>>, ExecutionDataflowBlockOptions)

初始化指定函数和 TransformManyBlock<TInput,TOutput> 的新 ExecutionDataflowBlockOptions

TransformManyBlock<TInput,TOutput>(Func<TInput,Task<IEnumerable<TOutput>>>, ExecutionDataflowBlockOptions)

初始化指定函数和 TransformManyBlock<TInput,TOutput> 的新 ExecutionDataflowBlockOptions

TransformManyBlock<TInput,TOutput>(Func<TInput,IAsyncEnumerable<TOutput>>)

Source:
TransformManyBlock.IAsyncEnumerable.cs
Source:
TransformManyBlock.IAsyncEnumerable.cs
Source:
TransformManyBlock.IAsyncEnumerable.cs

TransformManyBlock<TInput,TOutput>使用指定的函数初始化 。

public:
 TransformManyBlock(Func<TInput, System::Collections::Generic::IAsyncEnumerable<TOutput> ^> ^ transform);
public TransformManyBlock (Func<TInput,System.Collections.Generic.IAsyncEnumerable<TOutput>> transform);
new System.Threading.Tasks.Dataflow.TransformManyBlock<'Input, 'Output> : Func<'Input, System.Collections.Generic.IAsyncEnumerable<'Output>> -> System.Threading.Tasks.Dataflow.TransformManyBlock<'Input, 'Output>
Public Sub New (transform As Func(Of TInput, IAsyncEnumerable(Of TOutput)))

参数

transform
Func<TInput,IAsyncEnumerable<TOutput>>

使用接收的各个数据元素调用的函数。 返回的 IAsyncEnumerable<T> 中的所有数据都以此 TransformManyBlock<TInput,TOutput> 中输出的形式可用。

例外

transformnull

适用于

TransformManyBlock<TInput,TOutput>(Func<TInput,IEnumerable<TOutput>>)

Source:
TransformManyBlock.cs
Source:
TransformManyBlock.cs
Source:
TransformManyBlock.cs

使用指定的函数初始化新的 TransformManyBlock<TInput,TOutput>

public:
 TransformManyBlock(Func<TInput, System::Collections::Generic::IEnumerable<TOutput> ^> ^ transform);
public TransformManyBlock (Func<TInput,System.Collections.Generic.IEnumerable<TOutput>> transform);
new System.Threading.Tasks.Dataflow.TransformManyBlock<'Input, 'Output> : Func<'Input, seq<'Output>> -> System.Threading.Tasks.Dataflow.TransformManyBlock<'Input, 'Output>
Public Sub New (transform As Func(Of TInput, IEnumerable(Of TOutput)))

参数

transform
Func<TInput,IEnumerable<TOutput>>

使用接收的各个数据元素调用的函数。 返回的 IEnumerable<T> 中的所有数据都以此 TransformManyBlock<TInput,TOutput> 中输出的形式可用。

例外

transformnull

适用于

TransformManyBlock<TInput,TOutput>(Func<TInput,Task<IEnumerable<TOutput>>>)

Source:
TransformManyBlock.cs
Source:
TransformManyBlock.cs
Source:
TransformManyBlock.cs

使用指定的函数初始化新的 TransformManyBlock<TInput,TOutput>

public:
 TransformManyBlock(Func<TInput, System::Threading::Tasks::Task<System::Collections::Generic::IEnumerable<TOutput> ^> ^> ^ transform);
public TransformManyBlock (Func<TInput,System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TOutput>>> transform);
new System.Threading.Tasks.Dataflow.TransformManyBlock<'Input, 'Output> : Func<'Input, System.Threading.Tasks.Task<seq<'Output>>> -> System.Threading.Tasks.Dataflow.TransformManyBlock<'Input, 'Output>
Public Sub New (transform As Func(Of TInput, Task(Of IEnumerable(Of TOutput))))

参数

transform
Func<TInput,Task<IEnumerable<TOutput>>>

使用接收的各个数据元素调用的函数。 中 IEnumerable<T> 异步返回的所有数据都将作为此 TransformManyBlock<TInput,TOutput>的输出提供。

例外

transformnull

适用于

TransformManyBlock<TInput,TOutput>(Func<TInput,IAsyncEnumerable<TOutput>>, ExecutionDataflowBlockOptions)

Source:
TransformManyBlock.IAsyncEnumerable.cs
Source:
TransformManyBlock.IAsyncEnumerable.cs
Source:
TransformManyBlock.IAsyncEnumerable.cs
public:
 TransformManyBlock(Func<TInput, System::Collections::Generic::IAsyncEnumerable<TOutput> ^> ^ transform, System::Threading::Tasks::Dataflow::ExecutionDataflowBlockOptions ^ dataflowBlockOptions);
public TransformManyBlock (Func<TInput,System.Collections.Generic.IAsyncEnumerable<TOutput>> transform, System.Threading.Tasks.Dataflow.ExecutionDataflowBlockOptions dataflowBlockOptions);
new System.Threading.Tasks.Dataflow.TransformManyBlock<'Input, 'Output> : Func<'Input, System.Collections.Generic.IAsyncEnumerable<'Output>> * System.Threading.Tasks.Dataflow.ExecutionDataflowBlockOptions -> System.Threading.Tasks.Dataflow.TransformManyBlock<'Input, 'Output>
Public Sub New (transform As Func(Of TInput, IAsyncEnumerable(Of TOutput)), dataflowBlockOptions As ExecutionDataflowBlockOptions)

参数

transform
Func<TInput,IAsyncEnumerable<TOutput>>

使用接收的各个数据元素调用的函数。 返回的 IAsyncEnumerable<T> 中的所有数据都以此 TransformManyBlock<TInput,TOutput> 中输出的形式可用。

dataflowBlockOptions
ExecutionDataflowBlockOptions

用来配置此 TransformManyBlock<TInput,TOutput>的选项。

例外

transformdataflowBlockOptionsnull

适用于

TransformManyBlock<TInput,TOutput>(Func<TInput,IEnumerable<TOutput>>, ExecutionDataflowBlockOptions)

Source:
TransformManyBlock.cs
Source:
TransformManyBlock.cs
Source:
TransformManyBlock.cs
public:
 TransformManyBlock(Func<TInput, System::Collections::Generic::IEnumerable<TOutput> ^> ^ transform, System::Threading::Tasks::Dataflow::ExecutionDataflowBlockOptions ^ dataflowBlockOptions);
public TransformManyBlock (Func<TInput,System.Collections.Generic.IEnumerable<TOutput>> transform, System.Threading.Tasks.Dataflow.ExecutionDataflowBlockOptions dataflowBlockOptions);
new System.Threading.Tasks.Dataflow.TransformManyBlock<'Input, 'Output> : Func<'Input, seq<'Output>> * System.Threading.Tasks.Dataflow.ExecutionDataflowBlockOptions -> System.Threading.Tasks.Dataflow.TransformManyBlock<'Input, 'Output>
Public Sub New (transform As Func(Of TInput, IEnumerable(Of TOutput)), dataflowBlockOptions As ExecutionDataflowBlockOptions)

参数

transform
Func<TInput,IEnumerable<TOutput>>

使用接收的各个数据元素调用的函数。 中返回 IEnumerable<T> 的 中的所有数据都将作为此 TransformManyBlock<TInput,TOutput>的输出提供。

dataflowBlockOptions
ExecutionDataflowBlockOptions

用来配置此 TransformManyBlock<TInput,TOutput>的选项。

例外

transformnull

- 或 -

dataflowBlockOptionsnull

适用于

TransformManyBlock<TInput,TOutput>(Func<TInput,Task<IEnumerable<TOutput>>>, ExecutionDataflowBlockOptions)

Source:
TransformManyBlock.cs
Source:
TransformManyBlock.cs
Source:
TransformManyBlock.cs
public:
 TransformManyBlock(Func<TInput, System::Threading::Tasks::Task<System::Collections::Generic::IEnumerable<TOutput> ^> ^> ^ transform, System::Threading::Tasks::Dataflow::ExecutionDataflowBlockOptions ^ dataflowBlockOptions);
public TransformManyBlock (Func<TInput,System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<TOutput>>> transform, System.Threading.Tasks.Dataflow.ExecutionDataflowBlockOptions dataflowBlockOptions);
new System.Threading.Tasks.Dataflow.TransformManyBlock<'Input, 'Output> : Func<'Input, System.Threading.Tasks.Task<seq<'Output>>> * System.Threading.Tasks.Dataflow.ExecutionDataflowBlockOptions -> System.Threading.Tasks.Dataflow.TransformManyBlock<'Input, 'Output>
Public Sub New (transform As Func(Of TInput, Task(Of IEnumerable(Of TOutput))), dataflowBlockOptions As ExecutionDataflowBlockOptions)

参数

transform
Func<TInput,Task<IEnumerable<TOutput>>>

使用接收的各个数据元素调用的函数。 中 IEnumerable<T> 异步返回的所有数据都将作为此 TransformManyBlock<TInput,TOutput>的输出提供。

dataflowBlockOptions
ExecutionDataflowBlockOptions

用来配置此 TransformManyBlock<TInput,TOutput>的选项。

例外

transformnull

- 或 -

dataflowBlockOptionsnull

适用于