diff --git a/src/proj/CommonDomain.Core/RegistrationEventRouter.cs b/src/proj/CommonDomain.Core/RegistrationEventRouter.cs index 530e1ac..5e0b2d0 100644 --- a/src/proj/CommonDomain.Core/RegistrationEventRouter.cs +++ b/src/proj/CommonDomain.Core/RegistrationEventRouter.cs @@ -6,7 +6,7 @@ namespace CommonDomain.Core public class RegistrationEventRouter : IRouteEvents { private readonly IDictionary> handlers = new Dictionary>(); - private IAggregate regsitered; + private IAggregate registered; public virtual void Register(Action handler) { @@ -17,7 +17,7 @@ public virtual void Register(IAggregate aggregate) if (aggregate == null) throw new ArgumentNullException("aggregate"); - this.regsitered = aggregate; + this.registered = aggregate; } public virtual void Dispatch(object eventMessage) @@ -25,7 +25,7 @@ public virtual void Dispatch(object eventMessage) Action handler; if (!this.handlers.TryGetValue(eventMessage.GetType(), out handler)) - this.regsitered.ThrowHandlerNotFound(eventMessage); + this.registered.ThrowHandlerNotFound(eventMessage); handler(eventMessage); }