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
ISynchronizationContextThe 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
CanResolveRight
Gets a value indicating whether the inconsistency can be automatically resolved modifying the right hand model only
public bool CanResolveRight { get; }
Property Value
Context
Gets the synchronization context in which the inconsistency was found
public ISynchronizationContext Context { get; }
Property Value
Representation
Gets a human-readable description of the inconsistency
public string Representation { get; }
Property Value
SourceLeft
Gets an incrementally maintained value for the LHS property value
public INotifyReversableValue<T> SourceLeft { get; }
Property Value
SourceRight
Gets an incrementally maintained value for the RHS property value
public INotifyReversableValue<T> SourceRight { get; }
Property Value
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
IInconsistencyAn object to compare with this object.
Returns
Equals(IncrementalPropertyConsistencyCheck<T>)
public bool Equals(IncrementalPropertyConsistencyCheck<T> other)
Parameters
other
IncrementalPropertyConsistencyCheck<T>
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
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.