ITargetBlock<TInput> Interface

Definition

Represents a dataflow block that is a target for data.

public interface ITargetBlock<in TInput> : System.Threading.Tasks.Dataflow.IDataflowBlock
Type Parameters
TInput

Specifies the type of data accepted by the ITargetBlock<TInput>.

Derived
Implements

Remarks

Note

The TPL Dataflow Library (System.Threading.Tasks.Dataflow namespace) is not distributed with the .NET Framework 4.5. To install the System.Threading.Tasks.Dataflow namespace, open your project in Visual Studio 2012, choose Manage NuGet Packages from the Project menu, and search online for the Microsoft.Tpl.Dataflow package.

Methods

OfferMessage(DataflowMessageHeader, TInput, ISourceBlock<TInput>, Boolean)

Offers a message to the ITargetBlock<TInput>, giving the target the opportunity to consume or postpone the message.

Extension Methods

AsObserver<TInput>(ITargetBlock<TInput>)
Post<TInput>(ITargetBlock<TInput>, TInput)
SendAsync<TInput>(ITargetBlock<TInput>, TInput)
SendAsync<TInput>(ITargetBlock<TInput>, TInput, CancellationToken)