From 05d725fb2a8132fbc13bc56789acd725f02e8b0b Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Wed, 18 Mar 2026 09:52:50 +0000
Subject: [PATCH 1/2] Initial plan
From b69ff285aad9f34f8e0642c6ed57ccd2f9e3696a Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Wed, 18 Mar 2026 09:55:05 +0000
Subject: [PATCH 2/2] refactor: reduce domain event handler registry
constructor complexity
Co-authored-by: StuartFerguson <16325469+StuartFerguson@users.noreply.github.com>
---
.../Bootstrapper/DomainEventHandlerRegistry.cs | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
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)
{