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
input
object[]The input arguments as an array. This must not be null. The correct amount of parameters depends on the rule to start with.
inputContext
IEnumerableThe context in which the transformation rule is executed
startRule
GeneralTransformationRuleThe start rule to begin with (must not be null)
context
ITransformationEngineContextThe 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
inputs
IEnumerable<object[]>The input arguments as an array. This must not be null. The correct amount of parameters depends on the rule to start with.
inputContext
IEnumerableThe context object in which the transformation is run
startRule
GeneralTransformationRuleThe start rule to begin with (must not be null)
context
ITransformationEngineContextThe transformation context (must not be null)
Returns
- IEnumerable<Computation>
The transformation computations