From 02b40e6e315ab5b3c71b7dc10cbdf2bd806ca944 Mon Sep 17 00:00:00 2001 From: Ronaldo Macapobre Date: Wed, 20 Nov 2024 17:02:07 -0800 Subject: [PATCH] Removed commented code --- api/Infrastructure/ServiceCollectionExtensions.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/api/Infrastructure/ServiceCollectionExtensions.cs b/api/Infrastructure/ServiceCollectionExtensions.cs index cd74d6f8..ec229bf1 100644 --- a/api/Infrastructure/ServiceCollectionExtensions.cs +++ b/api/Infrastructure/ServiceCollectionExtensions.cs @@ -40,9 +40,6 @@ public static IServiceCollection AddMapster(this IServiceCollection services, Ac public static IServiceCollection AddHttpClientsAndScvServices(this IServiceCollection services, IConfiguration configuration) { - // var apigwKey = configuration.GetNonEmptyValue("AWS_API_GATEWAY_API_KEY"); - // var authorizerKey = configuration.GetNonEmptyValue("AuthorizerKey"); - services.AddTransient(); services.AddHttpClient(client => { @@ -67,8 +64,6 @@ public static IServiceCollection AddHttpClientsAndScvServices(this IServiceColle configuration.GetNonEmptyValue("LocationServicesClient:Username"), configuration.GetNonEmptyValue("LocationServicesClient:Password")); client.BaseAddress = new Uri(configuration.GetNonEmptyValue("LocationServicesClient:Url").EnsureEndingForwardSlash()); - // client.DefaultRequestHeaders.Add(X_APIGW_KEY_HEADER, apigwKey); - // client.DefaultRequestHeaders.Add(X_ORIGIN_VERIFY_HEADER, authorizerKey); }).AddHttpMessageHandler(); services.AddHttpClient(client =>