Class SynchronizationContextExtensions
- Namespace
- NMF.Synchronizations
- Assembly
- NMF.Synchronizations.dll
Denotes extension methods for the transformation context to easily access the trace links in expressions
public static class SynchronizationContextExtensions
- Inheritance
-
SynchronizationContextExtensions
- Inherited Members
Methods
MapLeft<TLeft, TRight>(ITransformationContext, SynchronizationRule<TLeft, TRight>, TLeft)
Maps the given LHS element using the provided synchronization rule
[ObservableProxy(typeof(SynchronizationContextExtensions.IncrementalHelpers), "MapLeftIncremental", false)]
public static TRight MapLeft<TLeft, TRight>(this ITransformationContext context, SynchronizationRule<TLeft, TRight> rule, TLeft left)
Parameters
context
ITransformationContextThe transformation context
rule
SynchronizationRule<TLeft, TRight>The rule that should be used as isomorphism
left
TLeftThe LHS element
Returns
- TRight
The RHS element corresponding to the provided LHS element
Type Parameters
TLeft
The LHS element type
TRight
The RHS element type
MapLefts<TLeft, TRight>(ITransformationContext, SynchronizationRule<TLeft, TRight>, IEnumerableExpression<TLeft>)
Maps the given LHS elements using the provided synchronization rule
public static IEnumerableExpression<TRight> MapLefts<TLeft, TRight>(this ITransformationContext context, SynchronizationRule<TLeft, TRight> rule, IEnumerableExpression<TLeft> lefts)
Parameters
context
ITransformationContextThe transformation context
rule
SynchronizationRule<TLeft, TRight>The rule that should be used as isomorphism
lefts
IEnumerableExpression<TLeft>The LHS elements
Returns
- IEnumerableExpression<TRight>
The RHS elements corresponding to the provided LHS elements
Type Parameters
TLeft
The LHS element type
TRight
The RHS element type
MapRight<TLeft, TRight>(ITransformationContext, SynchronizationRule<TLeft, TRight>, TRight)
Maps the given RHS element using the provided synchronization rule
[ObservableProxy(typeof(SynchronizationContextExtensions.IncrementalHelpers), "MapRightIncremental", false)]
public static TLeft MapRight<TLeft, TRight>(this ITransformationContext context, SynchronizationRule<TLeft, TRight> rule, TRight right)
Parameters
context
ITransformationContextThe transformation context
rule
SynchronizationRule<TLeft, TRight>The rule that should be used as isomorphism
right
TRightThe RHS element
Returns
- TLeft
The LHS element corresponding to the provided RHS element
Type Parameters
TLeft
The LHS element type
TRight
The RHS element type
MapRights<TLeft, TRight>(ITransformationContext, SynchronizationRule<TLeft, TRight>, IEnumerableExpression<TRight>)
Maps the given RHS elements using the provided synchronization rule
public static IEnumerableExpression<TLeft> MapRights<TLeft, TRight>(this ITransformationContext context, SynchronizationRule<TLeft, TRight> rule, IEnumerableExpression<TRight> rights)
Parameters
context
ITransformationContextThe transformation context
rule
SynchronizationRule<TLeft, TRight>The rule that should be used as isomorphism
rights
IEnumerableExpression<TRight>The RHS elements
Returns
- IEnumerableExpression<TLeft>
The LHS elements corresponding to the provided RHS elements
Type Parameters
TLeft
The LHS element type
TRight
The RHS element type