From 98701aa6767623b89f11280f4d215b9f030d5281 Mon Sep 17 00:00:00 2001 From: Jonathan McCaffrey Date: Sat, 16 Apr 2022 20:23:54 -0400 Subject: [PATCH] Adding lazy loader --- IGP/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IGP/Program.cs b/IGP/Program.cs index c259077..e5b2294 100644 --- a/IGP/Program.cs +++ b/IGP/Program.cs @@ -1,6 +1,7 @@ using System.Globalization; using IGP; using Microsoft.AspNetCore.Components.Web; +using Microsoft.AspNetCore.Components.WebAssembly.Services; using Services; using Services.Development; using Services.Immortal; @@ -16,6 +17,7 @@ builder.RootComponents.Add("#app"); builder.RootComponents.Add("head::after"); builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); +builder.Services.AddScoped(); builder.Services.AddLocalization();