Table of Contents

Class IncrementalPropertyConsistencyCheck<T>

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

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

public class IncrementalPropertyConsistencyCheck<T> : IDisposable, IInconsistency, IEquatable<IInconsistency>

Type Parameters

T
Inheritance
IncrementalPropertyConsistencyCheck<T>
Implements
Inherited Members

Constructors

IncrementalPropertyConsistencyCheck(INotifyReversableValue<T>, INotifyReversableValue<T>, ISynchronizationContext)

Creates a new inconsistency

public IncrementalPropertyConsistencyCheck(INotifyReversableValue<T> source1, INotifyReversableValue<T> source2, ISynchronizationContext context)

Parameters

source1 INotifyReversableValue<T>

The LHS source

source2 INotifyReversableValue<T>

The RHS source

context ISynchronizationContext

The context in which the inconsistency arose

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

Context

Gets the synchronization context in which the inconsistency was found

public ISynchronizationContext Context { get; }

Property Value

ISynchronizationContext

Representation

Gets a human-readable description of the inconsistency

public string Representation { get; }

Property Value

string

SourceLeft

Gets an incrementally maintained value for the LHS property value

public INotifyReversableValue<T> SourceLeft { get; }

Property Value

INotifyReversableValue<T>

SourceRight

Gets an incrementally maintained value for the RHS property value

public INotifyReversableValue<T> SourceRight { get; }

Property Value

INotifyReversableValue<T>

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(IncrementalPropertyConsistencyCheck<T>)

public bool Equals(IncrementalPropertyConsistencyCheck<T> other)

Parameters

other IncrementalPropertyConsistencyCheck<T>

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()

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.