From 70c4709db358d589ce8a89d144fab160052e9d14 Mon Sep 17 00:00:00 2001 From: Michael Bond Date: Tue, 19 Nov 2024 01:57:58 -0500 Subject: [PATCH] Remove extra HttpClient --- Pkmds.Web/Program.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Pkmds.Web/Program.cs b/Pkmds.Web/Program.cs index cb68f66b..906dc003 100644 --- a/Pkmds.Web/Program.cs +++ b/Pkmds.Web/Program.cs @@ -5,10 +5,9 @@ builder.RootComponents.Add("head::after"); services - .AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }) + .AddScoped(_ => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }) .AddMudServices() .AddFileSystemAccessService() - .AddScoped(_ => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }) .AddScoped() .AddScoped() .AddScoped()