2021-08-31 14:23:23 +00:00
|
|
|
using System;
|
|
|
|
using System.Net.Http;
|
|
|
|
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
|
|
|
using Microsoft.AspNetCore.Components.Web;
|
2021-09-18 16:59:06 +00:00
|
|
|
using BlazorApp;
|
2021-08-31 14:23:23 +00:00
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
|
|
|
builder.RootComponents.Add<App>("#app");
|
|
|
|
|
|
|
|
builder.Services.AddScoped(sp => new HttpClient {BaseAddress = new Uri(builder.HostEnvironment.BaseAddress)});
|
|
|
|
builder.RootComponents.Add<HeadOutlet>("head::after");
|
|
|
|
await builder.Build().RunAsync();
|