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.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
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
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
|