Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataflowBlock Class

 

Provides a set of static (Shared in Visual Basic) methods for working with dataflow blocks.

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

System::Object
System.Threading.Tasks.Dataflow::DataflowBlock

[ExtensionAttribute]
public ref class DataflowBlock abstract sealed 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAsObservable<TOutput>(ISourceBlock<TOutput>^)

Creates a new IObservable<T> abstraction over the ISourceBlock<TOutput>.

System_CAPS_pubmethodSystem_CAPS_staticAsObserver<TInput>(ITargetBlock<TInput>^)

Creates a new IObserver<T> abstraction over the ITargetBlock<TInput>.

System_CAPS_pubmethodSystem_CAPS_staticChoose<T1, T2>(ISourceBlock<T1>^, Action<T1>^, ISourceBlock<T2>^, Action<T2>^)

Monitors two dataflow sources, invoking the provided handler for whichever source makes data available first.

System_CAPS_pubmethodSystem_CAPS_staticChoose<T1, T2>(ISourceBlock<T1>^, Action<T1>^, ISourceBlock<T2>^, Action<T2>^, DataflowBlockOptions^)

Monitors two dataflow sources, invoking the provided handler for whichever source makes data available first.

System_CAPS_pubmethodSystem_CAPS_staticChoose<T1, T2, T3>(ISourceBlock<T1>^, Action<T1>^, ISourceBlock<T2>^, Action<T2>^, ISourceBlock<T3>^, Action<T3>^)

Monitors three dataflow sources, invoking the provided handler for whichever source makes data available first.

System_CAPS_pubmethodSystem_CAPS_staticChoose<T1, T2, T3>(ISourceBlock<T1>^, Action<T1>^, ISourceBlock<T2>^, Action<T2>^, ISourceBlock<T3>^, Action<T3>^, DataflowBlockOptions^)

Monitors three dataflow sources, invoking the provided handler for whichever source makes data available first.

System_CAPS_pubmethodSystem_CAPS_staticEncapsulate<TInput, TOutput>(ITargetBlock<TInput>^, ISourceBlock<TOutput>^)

Encapsulates a target and a source into a single propagator.

System_CAPS_pubmethodSystem_CAPS_staticLinkTo<TOutput>(ISourceBlock<TOutput>^, ITargetBlock<TOutput>^)

Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput>.

System_CAPS_pubmethodSystem_CAPS_staticLinkTo<TOutput>(ISourceBlock<TOutput>^, ITargetBlock<TOutput>^, DataflowLinkOptions^, Predicate<TOutput>^)

Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified filter.

System_CAPS_pubmethodSystem_CAPS_staticLinkTo<TOutput>(ISourceBlock<TOutput>^, ITargetBlock<TOutput>^, Predicate<TOutput>^)

Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified filter.

System_CAPS_pubmethodSystem_CAPS_staticNullTarget<TInput>()

Gets a target block that synchronously accepts all messages offered to it and drops them.

System_CAPS_pubmethodSystem_CAPS_staticOutputAvailableAsync<TOutput>(ISourceBlock<TOutput>^)

Provides a Task<TResult> that asynchronously monitors the source for available output.

System_CAPS_pubmethodSystem_CAPS_staticOutputAvailableAsync<TOutput>(ISourceBlock<TOutput>^, CancellationToken)

Provides a Task<TResult> that asynchronously monitors the source for available output.

System_CAPS_pubmethodSystem_CAPS_staticPost<TInput>(ITargetBlock<TInput>^, TInput)

Posts an item to the ITargetBlock<TInput>.

System_CAPS_pubmethodSystem_CAPS_staticReceive<TOutput>(ISourceBlock<TOutput>^)

Synchronously receives a value from a specified source.

System_CAPS_pubmethodSystem_CAPS_staticReceive<TOutput>(ISourceBlock<TOutput>^, CancellationToken)

Synchronously receives a value from a specified source and provides a token to cancel the operation.

System_CAPS_pubmethodSystem_CAPS_staticReceive<TOutput>(ISourceBlock<TOutput>^, TimeSpan)

Synchronously receives a value from a specified source, observing an optional time-out period.

System_CAPS_pubmethodSystem_CAPS_staticReceive<TOutput>(ISourceBlock<TOutput>^, TimeSpan, CancellationToken)

Synchronously receives a value from a specified source, providing a token to cancel the operation and observing an optional time-out interval.

System_CAPS_pubmethodSystem_CAPS_staticReceiveAsync<TOutput>(ISourceBlock<TOutput>^)

Asynchronously receives a value from a specified source.

System_CAPS_pubmethodSystem_CAPS_staticReceiveAsync<TOutput>(ISourceBlock<TOutput>^, CancellationToken)

Asynchronously receives a value from a specified source and provides a token to cancel the operation.

System_CAPS_pubmethodSystem_CAPS_staticReceiveAsync<TOutput>(ISourceBlock<TOutput>^, TimeSpan)

Asynchronously receives a value from a specified source, observing an optional time-out period.

System_CAPS_pubmethodSystem_CAPS_staticReceiveAsync<TOutput>(ISourceBlock<TOutput>^, TimeSpan, CancellationToken)

Asynchronously receives a value from a specified source, providing a token to cancel the operation and observing an optional time-out interval.

System_CAPS_pubmethodSystem_CAPS_staticSendAsync<TInput>(ITargetBlock<TInput>^, TInput)

Asynchronously offers a message to the target message block, allowing for postponement.

System_CAPS_pubmethodSystem_CAPS_staticSendAsync<TInput>(ITargetBlock<TInput>^, TInput, CancellationToken)

Asynchronously offers a message to the target message block, allowing for postponement.

System_CAPS_pubmethodSystem_CAPS_staticTryReceive<TOutput>(IReceivableSourceBlock<TOutput>^, TOutput)

Attempts to synchronously receive an item from the ISourceBlock<TOutput>.

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2017 Microsoft