BadScript 2
Loading...
Searching...
No Matches
Program.cs
Go to the documentation of this file.
1using System.Runtime.CompilerServices;
2
5
6using Microsoft.AspNetCore.Components.Web;
7using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
8
10
11public class Program
12{
13 public static async Task Main(string[] args)
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 }
29}
The Base Class for all BadScript Objects.
Definition BadObject.cs:14
static async Task Main(string[] args)
Definition Program.cs:13
Contains the Runtime Objects.
Definition BadArray.cs:10