|
static async Task | Main (string[] args) |
|
Definition at line 11 of file Program.cs.
◆ Main()
static async Task BadScript2.Web.Frontend.Program.Main |
( |
string[] |
args | ) |
|
|
static |
Definition at line 13 of file Program.cs.
14 {
15 RuntimeHelpers.RunClassConstructor(typeof(
BadObject).TypeHandle);
16 var builder = WebAssemblyHostBuilder.CreateDefault(args);
17 builder.RootComponents.Add<App>("#app");
18 builder.RootComponents.Add<HeadOutlet>("head::after");
19
20 builder.Services.AddScoped(
21 sp => new HttpClient
22 {
23 BaseAddress = new Uri(builder.HostEnvironment.BaseAddress)
24 }
25 );
26
27 await builder.Build().RunAsync();
28 }
The Base Class for all BadScript Objects.
The documentation for this class was generated from the following file: