ISourceBlock<TOutput> Interface
Represents a dataflow block that is a source of data.
Namespace: System.Threading.Tasks.Dataflow
Assembly: System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)
Type Parameters
- out TOutput
Specifies the type of data supplied by the ISourceBlock<TOutput>.
This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
The ISourceBlock<TOutput> type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | Completion | Gets a Task that represents the asynchronous operation and completion of the dataflow block. (Inherited from IDataflowBlock.) |
| Name | Description | |
|---|---|---|
![]() ![]() | Complete | Signals to the IDataflowBlock that it should not accept nor produce any more messages nor consume any more postponed messages. (Inherited from IDataflowBlock.) |
![]() ![]() | ConsumeMessage | Called by a linked ITargetBlock<TInput> to accept and consume a DataflowMessageHeader previously offered by this ISourceBlock<TOutput>. |
![]() ![]() | Fault | Causes the IDataflowBlock to complete in a Faulted state. (Inherited from IDataflowBlock.) |
![]() ![]() | LinkTo | Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput>. |
![]() ![]() | ReleaseReservation | Called by a linked ITargetBlock<TInput> to release a previously reserved DataflowMessageHeader by this ISourceBlock<TOutput>. |
![]() ![]() | ReserveMessage | Called by a linked ITargetBlock<TInput> to reserve a previously offered DataflowMessageHeader by this ISourceBlock<TOutput>. |
| Name | Description | |
|---|---|---|
![]() ![]() | AsObservable<TOutput> | Creates a new IObservable<T> abstraction over the ISourceBlock<TOutput>. (Defined by DataflowBlock.) |
![]() ![]() | LinkTo<TOutput>(ITargetBlock<TOutput>) | Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput>. (Defined by DataflowBlock.) |
![]() ![]() | LinkTo<TOutput>(ITargetBlock<TOutput>, Predicate<TOutput>) | Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified filter. (Defined by DataflowBlock.) |
![]() ![]() | LinkTo<TOutput>(ITargetBlock<TOutput>, DataflowLinkOptions, Predicate<TOutput>) | Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified filter. (Defined by DataflowBlock.) |
![]() ![]() | OutputAvailableAsync<TOutput>() | Overloaded. Provides a Task<TResult> that asynchronously monitors the source for available output. (Defined by DataflowBlock.) |
![]() ![]() | OutputAvailableAsync<TOutput>(CancellationToken) | Overloaded. Provides a Task<TResult> that asynchronously monitors the source for available output. (Defined by DataflowBlock.) |
![]() ![]() | Receive<TOutput>() | Overloaded. Synchronously receives a value from a specified source. (Defined by DataflowBlock.) |
![]() ![]() | Receive<TOutput>(CancellationToken) | Overloaded. Synchronously receives a value from a specified source and provides a token to cancel the operation. (Defined by DataflowBlock.) |
![]() ![]() | Receive<TOutput>(TimeSpan) | Overloaded. Synchronously receives a value from a specified source, observing an optional time-out period. (Defined by DataflowBlock.) |
![]() ![]() | Receive<TOutput>(TimeSpan, CancellationToken) | Overloaded. Synchronously receives a value from a specified source, providing a token to cancel the operation and observing an optional time-out interval. (Defined by DataflowBlock.) |
![]() ![]() | ReceiveAsync<TOutput>() | Overloaded. Asynchronously receives a value from a specified source. (Defined by DataflowBlock.) |
![]() ![]() | ReceiveAsync<TOutput>(CancellationToken) | Overloaded. Asynchronously receives a value from a specified source and provides a token to cancel the operation. (Defined by DataflowBlock.) |
![]() ![]() | ReceiveAsync<TOutput>(TimeSpan) | Overloaded. Asynchronously receives a value from a specified source, observing an optional time-out period. (Defined by DataflowBlock.) |
![]() ![]() | ReceiveAsync<TOutput>(TimeSpan, CancellationToken) | Overloaded. Asynchronously receives a value from a specified source, providing a token to cancel the operation and observing an optional time-out interval. (Defined by DataflowBlock.) |
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. |




Note