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
contextITransformationContext
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
computationComputationThe 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
otherComputationThe other computation context
isRequiredboolTrue, if the other context is a strict requirement