using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using Webshop.App; using Webshop.App.Services; var builder = WebAssemblyHostBuilder.CreateDefault(args); builder.RootComponents.Add("#app"); builder.RootComponents.Add("head::after"); builder.Services.AddHttpClient( client => client.BaseAddress = new Uri("https://localhost:7039")); builder.Services.AddHttpClient( client => client.BaseAddress = new Uri("https://localhost:7039")); builder.Services.AddHttpClient( client => client.BaseAddress = new Uri("https://localhost:7039")); builder.Services.AddScoped(); builder.Services.AddLocalStorageServices(); await builder.Build().RunAsync();