Class TransformationRunner
- Namespace
- NMF.Transformations.Core
- Assembly
- NMF.Transformations.Core.dll
Service class to run transformations
public static class TransformationRunner
- Inheritance
-
TransformationRunner
- Inherited Members
Methods
Transform(object[], IEnumerable, GeneralTransformationRule, ITransformationEngineContext)
Transforms the input argument into an output using the provided transformation
public static Computation Transform(object[] input, IEnumerable inputContext, GeneralTransformationRule startRule, ITransformationEngineContext context)
Parameters
inputobject[]The input arguments as an array. This must not be null. The correct amount of parameters depends on the rule to start with.
inputContextIEnumerableThe context in which the transformation rule is executed
startRuleGeneralTransformationRuleThe start rule to begin with (must not be null)
contextITransformationEngineContextThe transformation context (must not be null)
Returns
- Computation
The transformation computation
TransformMany(IEnumerable<object[]>, IEnumerable, GeneralTransformationRule, ITransformationEngineContext)
Transforms the input argument into an output using the provided transformation
public static IEnumerable<Computation> TransformMany(IEnumerable<object[]> inputs, IEnumerable inputContext, GeneralTransformationRule startRule, ITransformationEngineContext context)
Parameters
inputsIEnumerable<object[]>The input arguments as an array. This must not be null. The correct amount of parameters depends on the rule to start with.
inputContextIEnumerableThe context object in which the transformation is run
startRuleGeneralTransformationRuleThe start rule to begin with (must not be null)
contextITransformationEngineContextThe transformation context (must not be null)
Returns
- IEnumerable<Computation>
The transformation computations