Table of Contents

Class ReflectiveSynchronization

Namespace
NMF.Synchronizations
Assembly
NMF.Synchronizations.dll

Denotes a synchronization that assigns the synchronization rules from the nested classes through reflection

public class ReflectiveSynchronization : Synchronization
Inheritance
ReflectiveSynchronization
Derived
Inherited Members

Properties

SynchronizationRules

Gets the synchronization rules contained in this synchronization

public override IEnumerable<SynchronizationRuleBase> SynchronizationRules { get; }

Property Value

IEnumerable<SynchronizationRuleBase>

Methods

CreateCustomSynchronizationRules()

Creates the custom synchronization rules that are no public nested classes (cannot be overridden by reflected rules)

protected virtual IEnumerable<SynchronizationRuleBase> CreateCustomSynchronizationRules()

Returns

IEnumerable<SynchronizationRuleBase>

A collection of transformation rules

Remarks

This method is called during Initialization. The output IEnumerable-collection is saved into a list.

CreateCustomTransformationRules()

Creates the custom transformation rules that are no public nested classes (cannot be overridden by reflected rules)

protected virtual IEnumerable<GeneralTransformationRule> CreateCustomTransformationRules()

Returns

IEnumerable<GeneralTransformationRule>

A collection of transformation rules

Remarks

This method is called during Initialization. The output IEnumerable-collection is saved into a list.

CreateDefaultSynchronizationRules()

Creates the default synchronization rules that are no public nested classes (can be overridden by reflected rules)

protected virtual IEnumerable<SynchronizationRuleBase> CreateDefaultSynchronizationRules()

Returns

IEnumerable<SynchronizationRuleBase>

A collection of transformation rules

Remarks

This method is called during Initialization. The output IEnumerable-collection is saved into a list.

CreateDefaultTransformationRules()

Creates the default transformation rules that are no public nested classes (can be overridden by reflected rules)

protected virtual IEnumerable<GeneralTransformationRule> CreateDefaultTransformationRules()

Returns

IEnumerable<GeneralTransformationRule>

A collection of transformation rules

Remarks

This method is called during Initialization. The output IEnumerable-collection is saved into a list.

CreateRules()

Creates all transformation rules of this transformation

protected override sealed IEnumerable<GeneralTransformationRule> CreateRules()

Returns

IEnumerable<GeneralTransformationRule>

A collection of transformation rules

Remarks

This method is called during Initialization. The output IEnumerable-collection is saved into a list.

GetRuleForRuleType(Type)

Gets the rule with the specified type (exact match)

public override GeneralTransformationRule GetRuleForRuleType(Type transformationRule)

Parameters

transformationRule Type

The type of the transformation rule

Returns

GeneralTransformationRule

The transformation rule with this type or null, if there is none

Remarks

This method assumes there is only one transformation rule per type

GetRulesForRuleType(Type)

Gets all rules with the specified type (exact match)

public override IEnumerable<GeneralTransformationRule> GetRulesForRuleType(Type transformationRule)

Parameters

transformationRule Type

The type of the transformation rules

Returns

IEnumerable<GeneralTransformationRule>

A collection of all rules with this type

Remarks

This method assumes there is only one transformation rule per type

RegisterRules()

Registers the rules of this transformation

public override void RegisterRules()

Rule<TRule>()

Gets the transformation rule instance of the given rule type within the given transformation

public TRule Rule<TRule>() where TRule : GeneralTransformationRule

Returns

TRule

The transformation rule

Type Parameters

TRule

The type of the desired transformation rule

SynchronizationRule<TRule>()

Gets the synchronization rule instance of the given rule type within the given transformation

public TRule SynchronizationRule<TRule>() where TRule : SynchronizationRuleBase

Returns

TRule

The transformation rule

Type Parameters

TRule

The type of the desired transformation rule