From f8731bc7fc45b28e0c50ced30d77cbeabebcd050 Mon Sep 17 00:00:00 2001 From: masoodafar-web Date: Sat, 3 Jan 2026 08:43:22 +0330 Subject: [PATCH] feat: register inventory-related repositories and services in ConfigureServices --- src/CMSMicroservice.Infrastructure/ConfigureServices.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/CMSMicroservice.Infrastructure/ConfigureServices.cs b/src/CMSMicroservice.Infrastructure/ConfigureServices.cs index 4a7ed35..82075a2 100644 --- a/src/CMSMicroservice.Infrastructure/ConfigureServices.cs +++ b/src/CMSMicroservice.Infrastructure/ConfigureServices.cs @@ -1,7 +1,9 @@ using CMSMicroservice.Application.Common.Interfaces; +using CMSMicroservice.Application.Common.Interfaces.Repositories; using CMSMicroservice.Application.DayaLoanCQ.Services; using CMSMicroservice.Infrastructure.Persistence; using CMSMicroservice.Infrastructure.Persistence.Interceptors; +using CMSMicroservice.Infrastructure.Persistence.Repositories; using CMSMicroservice.Infrastructure.BackgroundJobs; using CMSMicroservice.Infrastructure.Services.Monitoring; using CMSMicroservice.Infrastructure.Configuration; @@ -118,6 +120,13 @@ public static class ConfigureServices options.UseSqlServer(configuration.GetConnectionString("DefaultConnection"), builder => builder.MigrationsAssembly(typeof(ApplicationDbContext).Assembly.FullName))); } + + // Repository Pattern Registration + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + services.AddScoped(); + #region AddAuthentication var message = "";