diff --git a/TransactionProcessor/Bootstrapper/DomainEventHandlerRegistry.cs b/TransactionProcessor/Bootstrapper/DomainEventHandlerRegistry.cs index e87a7b34..5182767b 100644 --- a/TransactionProcessor/Bootstrapper/DomainEventHandlerRegistry.cs +++ b/TransactionProcessor/Bootstrapper/DomainEventHandlerRegistry.cs @@ -34,6 +34,15 @@ public class DomainEventHandlerRegistry : ServiceRegistry /// Initializes a new instance of the class. /// public DomainEventHandlerRegistry() + { + this.RegisterServices(); + } + + #endregion + + #region Methods + + private void RegisterServices() { Dictionary eventHandlersConfiguration = this.GetEventHandlerConfiguration($"AppSettings:{MainRegistrationName}", MainRegistrationName); @@ -48,10 +57,6 @@ public DomainEventHandlerRegistry() this.AddSingleton, DomainEventFactory>(); } - #endregion - - #region Methods - private Dictionary GetEventHandlerConfiguration(String sectionName, String registrationName) {