From b5dadb5d9c9bd1e01c58cd403aface0f661f64ea Mon Sep 17 00:00:00 2001 From: Yaser Moradi Date: Tue, 14 Nov 2023 19:44:56 +0100 Subject: [PATCH] feat(websites): add missing service registrations in Platform website #6051 (#6054) --- .../Bit.Websites.Platform.Server.csproj | 4 ---- .../src/Bit.Websites.Platform.Server/Startup/Services.cs | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Server/Bit.Websites.Platform.Server.csproj b/src/Websites/Platform/src/Bit.Websites.Platform.Server/Bit.Websites.Platform.Server.csproj index 3d8f64d918..11f3d8074f 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Server/Bit.Websites.Platform.Server.csproj +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Server/Bit.Websites.Platform.Server.csproj @@ -50,8 +50,4 @@ - - - - diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Server/Startup/Services.cs b/src/Websites/Platform/src/Bit.Websites.Platform.Server/Startup/Services.cs index d7d8565fc8..3e219ce741 100644 --- a/src/Websites/Platform/src/Bit.Websites.Platform.Server/Startup/Services.cs +++ b/src/Websites/Platform/src/Bit.Websites.Platform.Server/Startup/Services.cs @@ -13,6 +13,9 @@ public static void Add(IServiceCollection services, IWebHostEnvironment env, ICo var appSettings = configuration.GetSection(nameof(AppSettings)).Get()!; + services.AddHttpClient(); + services.AddScoped(); + services.AddClientSharedServices(); services.AddExceptionHandler();