Interface ITransformationContext
- Namespace
- NMF.Transformations.Core
- Assembly
- NMF.Transformations.Core.dll
This is the basic interface for a transformation context, providing a full trace
public interface ITransformationContext
- Extension Methods
Properties
Bag
Gets a Bag, where dynamic data can be added
dynamic Bag { get; }
Property Value
- dynamic
Remarks
The value of this property is an ExpandoObject, so that the bag can be easily extended with new properties
Computations
Gets all computations (for custom trace purposes)
IEnumerable<Computation> Computations { get; }
Property Value
Data
Gets a data dictionary, where data set during the transformation can be added
IDictionary<object, object> Data { get; }
Property Value
Input
Gets or sets the single input collection of this transformation
object[] Input { get; set; }
Property Value
- object[]
Inputs
Gets a collection of inputs
IList<object[]> Inputs { get; }
Property Value
IsThreadSafe
Indicates whether the transformation context is thread-safe
bool IsThreadSafe { get; }
Property Value
Outputs
Gets a collection of outputs
IList<object> Outputs { get; }
Property Value
Trace
Gets the object responsible for trace operations for this transformation context
ITransformationTrace Trace { get; }
Property Value
Transformation
Gets the parent transformation, that the context is based upon
Transformation Transformation { get; }
Property Value
Methods
CallTransformation(GeneralTransformationRule, object[], IEnumerable)
Calls the given transformation with the specified input
Computation CallTransformation(GeneralTransformationRule transformationRule, object[] input, IEnumerable context)
Parameters
transformationRule
GeneralTransformationRuleThe rule that should be applied
input
object[]The input for the transformation rule
context
IEnumerableThe context in which the transformation rule is executed
Returns
- Computation
The computation that handles this request
Events
ComputationCompleted
Gets fired when a computation is done
event EventHandler<ComputationEventArgs> ComputationCompleted