Interface ITransformationContext
This is the basic interface for a transformation context, providing a full trace
Namespace: NMF.Transformations.Core
Assembly: NMF.Transformations.Core.dll
Syntax
public interface ITransformationContext
Properties
| Edit this page View SourceBag
Gets a Bag, where dynamic data can be added
Declaration
dynamic Bag { get; }
Property Value
Type | Description |
---|---|
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)
Declaration
IEnumerable<Computation> Computations { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Computation> |
Data
Gets a data dictionary, where data set during the transformation can be added
Declaration
IDictionary<object, object> Data { get; }
Property Value
Type | Description |
---|---|
IDictionary<object, object> |
Input
Gets or sets the single input collection of this transformation
Declaration
object[] Input { get; set; }
Property Value
Type | Description |
---|---|
object[] |
Inputs
Gets a collection of inputs
Declaration
IList<object[]> Inputs { get; }
Property Value
Type | Description |
---|---|
IList<object[]> |
IsThreadSafe
Indicates whether the transformation context is thread-safe
Declaration
bool IsThreadSafe { get; }
Property Value
Type | Description |
---|---|
bool |
Outputs
Gets a collection of outputs
Declaration
IList<object> Outputs { get; }
Property Value
Type | Description |
---|---|
IList<object> |
Trace
Gets the object responsible for trace operations for this transformation context
Declaration
ITransformationTrace Trace { get; }
Property Value
Type | Description |
---|---|
ITransformationTrace |
Transformation
Gets the parent transformation, that the context is based upon
Declaration
Transformation Transformation { get; }
Property Value
Type | Description |
---|---|
Transformation |
Methods
| Edit this page View SourceCallTransformation(GeneralTransformationRule, object[], IEnumerable)
Calls the given transformation with the specified input
Declaration
Computation CallTransformation(GeneralTransformationRule transformationRule, object[] input, IEnumerable context)
Parameters
Type | Name | Description |
---|---|---|
GeneralTransformationRule | transformationRule | The rule that should be applied |
object[] | input | The input for the transformation rule |
IEnumerable | context | The context in which the transformation rule is executed |
Returns
Type | Description |
---|---|
Computation | The computation that handles this request |
Events
| Edit this page View SourceComputationCompleted
Gets fired when a computation is done
Declaration
event EventHandler<ComputationEventArgs> ComputationCompleted
Event Type
Type | Description |
---|---|
EventHandler<ComputationEventArgs> |