Ejemplo n.º 1
0
 public virtual void Route(object @event)
 {
     if (@event == null)
     {
         throw new Exception();
     }
     _router.Route(@event);
 }
Ejemplo n.º 2
0
        protected void ApplyChange(object @event, bool isNew)
        {
            if (@event == null)
            {
                throw new ArgumentNullException(nameof(@event));
            }
            _router.Route(@event);

            if (isNew)
            {
                _changes.Add(@event);
                Version++;
            }
        }