You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
StephenCleary edited this page Sep 5, 2014
·
1 revision
Overview
DataflowProgress is an [[IProgress|http://msdn.microsoft.com/en-us/library/hh138298.aspx]] implementation that sends progress reports to a dataflow block (via Post).
DataflowProgress also supports ObserveTaskForCompletion, which will complete the dataflow block (via Complete or Fault) when the Task completes.
API
// A progress implementation that sends progress reports to a dataflow block.// Optionally shuts down the dataflow block when the task completes.publicsealedclassDataflowProgress<T>:IProgress<T>{// Initializes a new instance of the DataflowProgress<T> class.publicDataflowProgress(ITargetBlock<T>block);// Watches the task, and shuts down the dataflow block when the task completes.publicvoidObserveTaskForCompletion(Tasktask);}
Platform Support
This type is not supported on the following platforms: