using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using HushianWebApp; using HushianWebApp.Services; using HushianWebApp.Service; var builder = WebAssemblyHostBuilder.CreateDefault(args); builder.RootComponents.Add("#app"); builder.RootComponents.Add("head::after"); string BaseAddress = builder.Configuration.GetSection("BaseAddress").Value; builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(BaseAddress) }); builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddScoped(); builder.Services.AddBlazorBootstrap(); await builder.Build().RunAsync();