ITargetBlock<TInput> Interface

 

Represents a dataflow block that is a target for data.

Namespace:   System.Threading.Tasks.Dataflow
Assembly:  System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)

generic<typename TInput>
public interface class ITargetBlock : IDataflowBlock

Type Parameters

inTInput

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

NameDescription
System_CAPS_pubpropertyCompletion

Gets a Task that represents the asynchronous operation and completion of the dataflow block.(Inherited from IDataflowBlock.)

NameDescription
System_CAPS_pubmethodComplete()

Signals to the IDataflowBlock that it should not accept nor produce any more messages nor consume any more postponed messages.(Inherited from IDataflowBlock.)

System_CAPS_pubmethodFault(Exception^)

Causes the IDataflowBlock to complete in a Faulted state.(Inherited from IDataflowBlock.)

System_CAPS_pubmethodOfferMessage(DataflowMessageHeader, TInput, ISourceBlock<TInput>^, Boolean)

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

NameDescription
System_CAPS_pubmethodAsObserver<TInput>()

Creates a new IObserver<T> abstraction over the ITargetBlock<TInput>. (Defined by DataflowBlock.)

System_CAPS_pubmethodPost<TInput>(TInput)

Posts an item to the ITargetBlock<TInput>.(Defined by DataflowBlock.)

System_CAPS_pubmethodSendAsync<TInput>(TInput)

Overloaded. Asynchronously offers a message to the target message block, allowing for postponement.(Defined by DataflowBlock.)

System_CAPS_pubmethodSendAsync<TInput>(TInput, CancellationToken)

Overloaded. Asynchronously offers a message to the target message block, allowing for postponement.(Defined by DataflowBlock.)

System_CAPS_noteNote

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.

Return to top
Show: