Show / Hide Table of Contents

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 Source

Bag

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

| Edit this page View Source

Computations

Gets all computations (for custom trace purposes)

Declaration
IEnumerable<Computation> Computations { get; }
Property Value
Type Description
IEnumerable<Computation>
| Edit this page View Source

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>
| Edit this page View Source

Input

Gets or sets the single input collection of this transformation

Declaration
object[] Input { get; set; }
Property Value
Type Description
object[]
| Edit this page View Source

Inputs

Gets a collection of inputs

Declaration
IList<object[]> Inputs { get; }
Property Value
Type Description
IList<object[]>
| Edit this page View Source

IsThreadSafe

Indicates whether the transformation context is thread-safe

Declaration
bool IsThreadSafe { get; }
Property Value
Type Description
bool
| Edit this page View Source

Outputs

Gets a collection of outputs

Declaration
IList<object> Outputs { get; }
Property Value
Type Description
IList<object>
| Edit this page View Source

Trace

Gets the object responsible for trace operations for this transformation context

Declaration
ITransformationTrace Trace { get; }
Property Value
Type Description
ITransformationTrace
| Edit this page View Source

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 Source

CallTransformation(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 Source

ComputationCompleted

Gets fired when a computation is done

Declaration
event EventHandler<ComputationEventArgs> ComputationCompleted
Event Type
Type Description
EventHandler<ComputationEventArgs>

Extension Methods

TransformationContextExtensions.CallTransformation(ITransformationContext, GeneralTransformationRule, params object[])
TraceExtensions.GetOrCreateUserItem<TValue>(ITransformationContext, object, Func<TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX