Generator Changes at 9/27/2025 11:50:52 PM

This commit is contained in:
MeysamMoghaddam
2025-09-27 23:59:05 +03:30
parent ec6ab8258a
commit 6fd9472f2b
11 changed files with 165 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ using Microsoft.AspNetCore.Http;
using System.Diagnostics;
using Microsoft.IdentityModel.Tokens;
using System.Text;
using CMSMicroservice.Infrastructure.Services;
namespace Microsoft.Extensions.DependencyInjection;
@@ -17,6 +18,7 @@ public static class ConfigureServices
{
services.AddScoped<AuditableEntitySaveChangesInterceptor>();
services.AddScoped<ApplicationDbContextInitialiser>();
services.AddScoped<IGenerateJwtToken, GenerateJwtTokenService>();
services.AddScoped<IApplicationDbContext>(p => p.GetRequiredService<ApplicationDbContext>());
if (configuration.GetValue<bool>("UseInMemoryDatabase"))
{