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 = "";