Ejemplo n.º 1
0
        internal IncrementalReferenceConsistencyCheck(INotifyReversableValue <TDepLeft> left, INotifyReversableValue <TDepRight> right, SynchronizationComputation <TLeft, TRight> computation, SynchronizationSingleDependency <TLeft, TRight, TDepLeft, TDepRight> parent)
        {
            Left        = left;
            Right       = right;
            Parent      = parent;
            Computation = computation;

            Left.ValueChanged  += Left_ValueChanged;
            Right.ValueChanged += Right_ValueChanged;

            if (Computation.SynchronizationContext.Direction == SynchronizationDirection.CheckOnly &&
                Computation.TransformationContext.Trace.ResolveIn(Parent.childRule.LeftToRight, Left.Value) != Right.Value)
            {
                Computation.SynchronizationContext.Inconsistencies.Add(this);
            }
        }