Class TaskParallelTransformationContext2
- Namespace
- NMF.Transformations.Parallel.Tasks
- Assembly
- NMF.Transformations.Parallel.dll
An alternative implementation of a transformation context parallelized using the TPL
public class TaskParallelTransformationContext2 : TransformationContext, ITransformationEngineContext, ITransformationContext
- Inheritance
-
TaskParallelTransformationContext2
- Implements
- Inherited Members
- Extension Methods
Constructors
TaskParallelTransformationContext2(Transformation)
Creates a new instance
public TaskParallelTransformationContext2(Transformation transformation)
Parameters
transformationTransformation
Methods
CreateComputationContext(object[], GeneralTransformationRule)
Creates a computation context for the given input with the given transformation rule
protected override ComputationContext CreateComputationContext(object[] input, GeneralTransformationRule rule)
Parameters
inputobject[]The inputs
ruleGeneralTransformationRuleThe transformation rule to process these inputs
Returns
- ComputationContext
A computation context
ExecuteLevel(IList<Computation>)
Executes all computations of the given level
protected override void ExecuteLevel(IList<Computation> computationsOfLevel)
Parameters
computationsOfLevelIList<Computation>The computations of the given level