Class TaskParallelComputationContext
- Namespace
- NMF.Transformations.Parallel.Tasks
- Assembly
- NMF.Transformations.Parallel.dll
Denotes a computation context that uses the TPL for parallel task execution
public class TaskParallelComputationContext : ComputationContext, IComputationContext
- Inheritance
-
TaskParallelComputationContext
- Implements
- Inherited Members
Constructors
TaskParallelComputationContext(ITransformationContext)
Creates a new instance
public TaskParallelComputationContext(ITransformationContext context)
Parameters
context
ITransformationContext
Methods
Complete()
Waits until all transformations are computed
public Task Complete()
Returns
ConnectWith(Computation)
Connects the computation context with the given computation
public override void ConnectWith(Computation computation)
Parameters
computation
ComputationThe computation thst is handled by this computation context
MarkRequire(Computation, bool)
Mark that this computation context requires another computation context to be done
public override void MarkRequire(Computation other, bool isRequired)
Parameters
other
ComputationThe other computation context
isRequired
boolTrue, if the other context is a strict requirement