From 2b6fcbdce3091e0ad580300f88b279b4d82c96be Mon Sep 17 00:00:00 2001 From: Ciprian Jichici Date: Thu, 12 Dec 2024 18:57:40 +0200 Subject: [PATCH] Do not inject the authorization cache service by default into the DI container --- src/dotnet/Common/Clients/DependencyInjection.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dotnet/Common/Clients/DependencyInjection.cs b/src/dotnet/Common/Clients/DependencyInjection.cs index 26502e10d..64bb5406d 100644 --- a/src/dotnet/Common/Clients/DependencyInjection.cs +++ b/src/dotnet/Common/Clients/DependencyInjection.cs @@ -24,7 +24,7 @@ public static void AddAuthorizationServiceClient(this IHostApplicationBuilder bu { builder.Services.AddOptions() .Bind(builder.Configuration.GetSection(AppConfigurationKeySections.FoundationaLLM_APIEndpoints_AuthorizationAPI_Essentials)); - builder.Services.AddSingleton(); + //builder.Services.AddSingleton(); builder.Services.AddSingleton(); } @@ -37,7 +37,7 @@ public static void AddAuthorizationServiceClient(this IServiceCollection service { services.AddOptions() .Bind(configuration.GetSection(AppConfigurationKeySections.FoundationaLLM_APIEndpoints_AuthorizationAPI_Essentials)); - services.AddSingleton(); + //services.AddSingleton(); services.AddSingleton(); } }