-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
13 lines (11 loc) · 655 Bytes
/
Copy pathProgram.cs
File metadata and controls
13 lines (11 loc) · 655 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
using BlazorButton;
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Syncfusion.Blazor;
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("NzY1MDI0QDMyMzAyZTMzMmUzMGUvaGtuNkt5TVBOUXFpcVl4NVVyZDNnQXhWOERDWENES1pkNkhLQ0hPZHc9");
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");
builder.Services.AddSyncfusionBlazor();
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
await builder.Build().RunAsync();