Table of Contents

Class IncrementalReferenceConsistencyCheck<TLeft, TRight, TDepLeft, TDepRight>

Namespace
NMF.Synchronizations.Inconsistencies
Assembly
NMF.Synchronizations.dll

Denotes an incrementally maintained inconsistency that a reference has different values in LHS and RHS

public class IncrementalReferenceConsistencyCheck<TLeft, TRight, TDepLeft, TDepRight> : IDisposable, IInconsistency, IEquatable<IInconsistency>

Type Parameters

TLeft

The LHS context type

TRight

The RHS context type

TDepLeft

The LHS dependency type

TDepRight

The RHS dependency type

Inheritance
IncrementalReferenceConsistencyCheck<TLeft, TRight, TDepLeft, TDepRight>
Implements
Inherited Members

Properties

CanResolveLeft

Gets a value indicating whether the inconsistency can be automatically resolved modifying the left hand model only

public bool CanResolveLeft { get; }

Property Value

bool

CanResolveRight

Gets a value indicating whether the inconsistency can be automatically resolved modifying the right hand model only

public bool CanResolveRight { get; }

Property Value

bool

Computation

Gets the base correspondence on the basis of which the inconsistency was detected

public SynchronizationComputation<TLeft, TRight> Computation { get; }

Property Value

SynchronizationComputation<TLeft, TRight>

Left

Gets an incrementally maintained value of the LHS dependency

public INotifyReversableValue<TDepLeft> Left { get; }

Property Value

INotifyReversableValue<TDepLeft>

Right

Gets an incrementally maintained value of the RHS dependency

public INotifyReversableValue<TDepRight> Right { get; }

Property Value

INotifyReversableValue<TDepRight>

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Equals(IInconsistency)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(IInconsistency other)

Parameters

other IInconsistency

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(IncrementalReferenceConsistencyCheck<TLeft, TRight, TDepLeft, TDepRight>)

public bool Equals(IncrementalReferenceConsistencyCheck<TLeft, TRight, TDepLeft, TDepRight> other)

Parameters

other IncrementalReferenceConsistencyCheck<TLeft, TRight, TDepLeft, TDepRight>

Returns

bool

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ResolveLeft()

Resolves the inconsistency modifying the left hand side model

public void ResolveLeft()

ResolveRight()

Resolves the inconsistency modifying the right hand side model

public void ResolveRight()