Skip to content

Commit

Permalink
Do not inject the authorization cache service by default into the DI …
Browse files Browse the repository at this point in the history
…container
  • Loading branch information
ciprianjichici committed Dec 12, 2024
1 parent 32640a6 commit 2b6fcbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dotnet/Common/Clients/DependencyInjection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static void AddAuthorizationServiceClient(this IHostApplicationBuilder bu
{
builder.Services.AddOptions<AuthorizationServiceClientSettings>()
.Bind(builder.Configuration.GetSection(AppConfigurationKeySections.FoundationaLLM_APIEndpoints_AuthorizationAPI_Essentials));
builder.Services.AddSingleton<IAuthorizationServiceClientCacheService, AuthorizationServiceClientCacheService>();
//builder.Services.AddSingleton<IAuthorizationServiceClientCacheService, AuthorizationServiceClientCacheService>();
builder.Services.AddSingleton<IAuthorizationServiceClient, AuthorizationServiceClient>();
}

Expand All @@ -37,7 +37,7 @@ public static void AddAuthorizationServiceClient(this IServiceCollection service
{
services.AddOptions<AuthorizationServiceClientSettings>()
.Bind(configuration.GetSection(AppConfigurationKeySections.FoundationaLLM_APIEndpoints_AuthorizationAPI_Essentials));
services.AddSingleton<IAuthorizationServiceClientCacheService, AuthorizationServiceClientCacheService>();
//services.AddSingleton<IAuthorizationServiceClientCacheService, AuthorizationServiceClientCacheService>();
services.AddSingleton<IAuthorizationServiceClient, AuthorizationServiceClient>();
}
}
Expand Down

0 comments on commit 2b6fcbd

Please sign in to comment.