2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-07-05 16:43:13 +00:00
Files
esiur-dotnet/Esiur.eBook/Program.cs
2023-04-20 15:55:20 +03:00

12 lines
425 B
C#

using Esiur.eBook;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
await builder.Build().RunAsync();