using Blazored.LocalStorage; using HealthcareManagerUI; using HealthcareManagerUI.Services.Authentication; using HealthcareManagerUI.Services.Http; using HealthcareManagerUI.Services.TokenService; var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddRazorComponents() .AddInteractiveServerComponents(); builder.Services.AddScoped(provider => { var configuration = provider.GetRequiredService(); return new RequestHttpService(configuration); }); builder.Services.AddScoped(); builder.Services.AddBlazoredLocalStorage(); //builder.Services.AddScoped(); var app = builder.Build(); // Configure the HTTP request pipeline. if (!app.Environment.IsDevelopment()) { app.UseExceptionHandler("/Error", true); app.UseHsts(); } app.UseHttpsRedirection(); app.UseStaticFiles(); app.UseAntiforgery(); app.MapRazorComponents() .AddInteractiveServerRenderMode(); app.Run();