From 8eaeefecc88a1a7bdf0c2a4af8efdbd924dd838f Mon Sep 17 00:00:00 2001 From: SamSys Date: Thu, 27 Nov 2025 13:41:32 +0330 Subject: [PATCH] change --- ServiceHost/Program.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ServiceHost/Program.cs b/ServiceHost/Program.cs index 309cc42a..1e94643e 100644 --- a/ServiceHost/Program.cs +++ b/ServiceHost/Program.cs @@ -335,12 +335,7 @@ builder.Services.AddParbad().ConfigureGateways(gateways => var app = builder.Build(); -#region GetHttpContext -var httpContextAccessor = app.Services.GetRequiredService(); - - -#endregion app.UseCors("AllowSpecificOrigins"); #region InternalProgarmManagerApi @@ -358,7 +353,7 @@ app.Use(async (context, next) => else if (host.Contains("dadmehrg.ir")) baseUrl = builder.Configuration["InternalApi:Dadmehrg"]; else if (host.Contains("gozareshgir.ir")) - baseUrl = builder.Configuration["InternalApi:Gozarreshgir"]; + baseUrl = builder.Configuration["InternalApi:Gozareshgir"]; else baseUrl = builder.Configuration["InternalApi:Local"]; // fallback