tesses-backup/TessesDedupWeb/Program.cs

16 lines
602 B
C#
Raw Normal View History

2024-07-23 03:49:40 +00:00
using Blazored.LocalStorage;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using TessesDedupWeb;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");
HttpClient client = new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) };
builder.Services.AddScoped(sp => client );
builder.Services.AddBlazoredLocalStorage();
builder.Services.AddScoped(sp=>new DedupClient(client));
await builder.Build().RunAsync();