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
transformation
Transformation
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
input
object[]The inputs
rule
GeneralTransformationRuleThe 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
computationsOfLevel
IList<Computation>The computations of the given level