-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
34 lines (27 loc) · 1.11 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using IgniteUI.Blazor.Controls;
Console.WriteLine("FAF ");
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<SupremeUnitsApp.App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
builder.Services.AddScoped(typeof(FAF.BlueprintStats));
builder.Services.AddScoped(typeof(FAF.WebService));
// registering Infragistics Blazor
builder.Services.AddIgniteUIBlazor(
typeof(IgbSelectModule),
typeof(IgbComboModule),
typeof(IgbSwitchModule),
typeof(IgbAnnotationLayerProxyModule),
typeof(IgbCrosshairLayerModule),
typeof(IgbLegendModule),
typeof(IgbNumberAbbreviatorModule),
typeof(IgbDataChartCoreModule),
typeof(IgbDataChartScatterModule),
typeof(IgbDataChartScatterCoreModule),
typeof(IgbDataChartAnnotationModule),
typeof(IgbDataChartInteractivityModule),
typeof(IgbValueOverlayModule)
);
await builder.Build().RunAsync();