Show / Hide Table of Contents

Class ConflictDetector

The conflict detector is used to determine if the events to be committed represent a true business conflict as compared to events that have already been committed, thus allowing reconciliation of optimistic concurrency problems.

Inheritance
Object
ConflictDetector
Inherited Members
System.Object.ToString()
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
Namespace: IRM.Domain.Persistance
Assembly: IRM.dll
Syntax
public class ConflictDetector : IDetectConflicts

Methods

ConflictsWith(IEnumerable<IEvent>, IEnumerable<IEvent>)

Declaration
public bool ConflictsWith(IEnumerable<IEvent> uncommittedEvents, IEnumerable<IEvent> committedEvents)
Parameters
IEnumerable<IEvent> uncommittedEvents

IEnumerable<IEvent> committedEvents

Returns
Boolean

Implements
IDetectConflicts.ConflictsWith(IEnumerable<IEvent>, IEnumerable<IEvent>)

Register<TUncommitted, TCommitted>(ConflictDelegate)

Declaration
public void Register<TUncommitted, TCommitted>(ConflictDelegate handler)
    where TUncommitted : class, IEvent where TCommitted : class, IEvent
Parameters
ConflictDelegate handler

Type Parameters
TUncommitted

TCommitted

Implements
IDetectConflicts.Register<TUncommitted, TCommitted>(ConflictDelegate)

Extension Methods

ObjectExtensions.DeepClone<T>(T)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX