[ADD] Blazor WASM test, new ASP authentication project

This commit is contained in:
max
2024-12-01 01:34:25 +01:00
parent a3be0d9648
commit eb277e0937
21 changed files with 593 additions and 0 deletions

12
Blazor.Wasm/Program.cs Normal file
View File

@@ -0,0 +1,12 @@
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Blazor.Wasm;
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();