Represents a dataflow block that is a target for data.
Assembly: System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)
- in TInput
Specifies the type of data accepted by the .
This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
Thetype exposes the following members.
|Complete||Signals to the IDataflowBlock that it should not accept nor produce any more messages nor consume any more postponed messages. (Inherited from IDataflowBlock.)|
|Fault||Causes the IDataflowBlock to complete in a Faulted state. (Inherited from IDataflowBlock.)|
|OfferMessage||Offers a message to the , giving the target the opportunity to consume or postpone the message.|
|AsObserver<TInput>||Creates a new IObserver<T> abstraction over the . (Defined by DataflowBlock.)|
|Post<TInput>||Posts an item to the . (Defined by DataflowBlock.)|
|SendAsync<TInput>(TInput)||Overloaded. Asynchronously offers a message to the target message block, allowing for postponement. (Defined by DataflowBlock.)|
|SendAsync<TInput>(TInput, CancellationToken)||Overloaded. Asynchronously offers a message to the target message block, allowing for postponement. (Defined by DataflowBlock.)|
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.