Program.cs 430 B

1234567891011
  1. using BlazorApp_empty1;
  2. using Microsoft.AspNetCore.Components.Web;
  3. using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
  4. var builder = WebAssemblyHostBuilder.CreateDefault(args);
  5. builder.RootComponents.Add<App>("#app");
  6. builder.RootComponents.Add<HeadOutlet>("head::after");
  7. builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
  8. await builder.Build().RunAsync();