TransformBlock<TInput,TOutput> TransformBlock<TInput,TOutput> TransformBlock<TInput,TOutput> TransformBlock<TInput,TOutput> Constructors

Definition

Overloads

TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>) TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>) TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>) TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>)

Initializes a new TransformBlock<TInput,TOutput> with the specified Func<T,TResult>.

TransformBlock<TInput,TOutput>(Func<TInput,TOutput>) TransformBlock<TInput,TOutput>(Func<TInput,TOutput>) TransformBlock<TInput,TOutput>(Func<TInput,TOutput>) TransformBlock<TInput,TOutput>(Func<TInput,TOutput>)

Initializes a new TransformBlock<TInput,TOutput> with the specified Func<T,TResult>.

TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>, ExecutionDataflowBlockOptions) TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>, ExecutionDataflowBlockOptions) TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>, ExecutionDataflowBlockOptions) TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>, ExecutionDataflowBlockOptions)

Initializes a new TransformBlock<TInput,TOutput> with the specified Func<T,TResult> and ExecutionDataflowBlockOptions.

TransformBlock<TInput,TOutput>(Func<TInput,TOutput>, ExecutionDataflowBlockOptions) TransformBlock<TInput,TOutput>(Func<TInput,TOutput>, ExecutionDataflowBlockOptions) TransformBlock<TInput,TOutput>(Func<TInput,TOutput>, ExecutionDataflowBlockOptions) TransformBlock<TInput,TOutput>(Func<TInput,TOutput>, ExecutionDataflowBlockOptions)

Initializes a new TransformBlock<TInput,TOutput> with the specified Func<T,TResult> and ExecutionDataflowBlockOptions.

TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>) TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>) TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>) TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>)

Initializes a new TransformBlock<TInput,TOutput> with the specified Func<T,TResult>.

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

Parameters

transform
Func<TInput,Task<TOutput>>

The function to invoke with each data element received.

Exceptions

TransformBlock<TInput,TOutput>(Func<TInput,TOutput>) TransformBlock<TInput,TOutput>(Func<TInput,TOutput>) TransformBlock<TInput,TOutput>(Func<TInput,TOutput>) TransformBlock<TInput,TOutput>(Func<TInput,TOutput>)

Initializes a new TransformBlock<TInput,TOutput> with the specified Func<T,TResult>.

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

Parameters

transform
Func<TInput,TOutput>

The function to invoke with each data element received.

Exceptions

TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>, ExecutionDataflowBlockOptions) TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>, ExecutionDataflowBlockOptions) TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>, ExecutionDataflowBlockOptions) TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>, ExecutionDataflowBlockOptions)

Initializes a new TransformBlock<TInput,TOutput> with the specified Func<T,TResult> and ExecutionDataflowBlockOptions.

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

Parameters

transform
Func<TInput,Task<TOutput>>

The function to invoke with each data element received.

Exceptions

The transform is null.

-or-

The dataflowBlockOptions is null.

TransformBlock<TInput,TOutput>(Func<TInput,TOutput>, ExecutionDataflowBlockOptions) TransformBlock<TInput,TOutput>(Func<TInput,TOutput>, ExecutionDataflowBlockOptions) TransformBlock<TInput,TOutput>(Func<TInput,TOutput>, ExecutionDataflowBlockOptions) TransformBlock<TInput,TOutput>(Func<TInput,TOutput>, ExecutionDataflowBlockOptions)

Initializes a new TransformBlock<TInput,TOutput> with the specified Func<T,TResult> and ExecutionDataflowBlockOptions.

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

Parameters

transform
Func<TInput,TOutput>

The function to invoke with each data element received.

Exceptions

The transform is null.

-or-

The dataflowBlockOptions is null.

Applies to