Table of Contents

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

IEnumerable<Computation>

Data

Gets a data dictionary, where data set during the transformation can be added

IDictionary<object, object> Data { get; }

Property Value

IDictionary<object, object>

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

IList<object[]>

IsThreadSafe

Indicates whether the transformation context is thread-safe

bool IsThreadSafe { get; }

Property Value

bool

Outputs

Gets a collection of outputs

IList<object> Outputs { get; }

Property Value

IList<object>

Trace

Gets the object responsible for trace operations for this transformation context

ITransformationTrace Trace { get; }

Property Value

ITransformationTrace

Transformation

Gets the parent transformation, that the context is based upon

Transformation Transformation { get; }

Property Value

Transformation

Methods

CallTransformation(GeneralTransformationRule, object[], IEnumerable)

Calls the given transformation with the specified input

Computation CallTransformation(GeneralTransformationRule transformationRule, object[] input, IEnumerable context)

Parameters

transformationRule GeneralTransformationRule

The rule that should be applied

input object[]

The input for the transformation rule

context IEnumerable

The 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

Event Type

EventHandler<ComputationEventArgs>