From e7f02eca9bad25e445dafa500d2f58d91a7e05de Mon Sep 17 00:00:00 2001 From: Khwezi Mngoma Date: Tue, 9 Jun 2026 21:43:47 +0200 Subject: [PATCH] Refactored Shop services assembly scanner to be more generic --- LiteCharms.Features.MidrandBooks/Extensions/Shop.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LiteCharms.Features.MidrandBooks/Extensions/Shop.cs b/LiteCharms.Features.MidrandBooks/Extensions/Shop.cs index fddb438..3c7d771 100644 --- a/LiteCharms.Features.MidrandBooks/Extensions/Shop.cs +++ b/LiteCharms.Features.MidrandBooks/Extensions/Shop.cs @@ -4,11 +4,11 @@ namespace LiteCharms.Features.MidrandBooks.Extensions; public static class Shop { - public static IServiceCollection AddShopServices(this IServiceCollection services) + public static IServiceCollection AddShopServices(this IServiceCollection services, Assembly assembly) { var serviceType = typeof(IService); - var implementations = Assembly.GetExecutingAssembly().GetTypes() + var implementations = assembly.GetTypes() .Where(t => serviceType.IsAssignableFrom(t) && t.IsClass && !t.IsAbstract); foreach (var implementation in implementations)