Exemplo n.º 1
0
        public override bool TryResolveConflicts(IEnumerable <DomainEvent> missingEvents)
        {
            if (UncommittedEvents.Any(IsConflictingEvent))
            {
                return(false);
            }

            if (missingEvents.Any(IsConflictingEvent))
            {
                return(false);
            }

            return(true);
        }
Exemplo n.º 2
0
 protected static bool EventHasBeenRaised <T>()
 {
     return(UncommittedEvents.Any(x => x.GetType() == typeof(T)));
 }
Exemplo n.º 3
0
 public bool HasChanges() => UncommittedEvents.Any();