16 lines
602 B
C#
16 lines
602 B
C#
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();
|