ISourceBlock<TOutput>
Interface
Definition
Represents a dataflow block that is a source of data.
public interface ISourceBlock<out TOutput> : System.Threading.Tasks.Dataflow.IDataflowBlock
- TOutput
Specifies the type of data supplied by the ISourceBlock<TOutput>.
- Derived
- Implements
Remarks
Note
The TPL Dataflow Library (System.Threading.Tasks.Dataflow namespace) is not distributed with the net_v45. To install the System.Threading.Tasks.Dataflow namespace, open your project in vs_dev11_long, choose Manage NuGet Packages from the Project menu, and search online for the Microsoft.Tpl.Dataflow package.
Methods
| ConsumeMessage(DataflowMessageHeader, ITargetBlock<TOutput>, Boolean) |
Called by a linked ITargetBlock<TInput> to accept and consume a T:System.Threading.Tasks.Dataflow.DataflowMessageHeader previously offered by this ISourceBlock<TOutput>. |
| LinkTo(ITargetBlock<TOutput>, DataflowLinkOptions) |
Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput>. |
| ReleaseReservation(DataflowMessageHeader, ITargetBlock<TOutput>) |
Called by a linked ITargetBlock<TInput> to release a previously reserved DataflowMessageHeader by this ISourceBlock<TOutput>. |
| ReserveMessage(DataflowMessageHeader, ITargetBlock<TOutput>) |
Called by a linked ITargetBlock<TInput> to reserve a previously offered DataflowMessageHeader by this ISourceBlock<TOutput>. |