deprived-main-website/OpenBirchWebsite/Program.cs

26 lines
775 B
C#
Raw Permalink Normal View History

using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
2024-07-13 03:21:35 +02:00
using MudBlazor.Services;
2024-07-15 04:08:10 +02:00
using OpenBirchWebsite.Services;
2024-07-13 03:21:35 +02:00
namespace OpenBirchWebsite
2024-07-13 03:21:35 +02:00
{
public class Program
{
public static async Task Main(string[] args)
{
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");
2024-07-13 03:21:35 +02:00
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
2024-07-15 04:08:10 +02:00
builder.Services.AddScoped<OpenBirchConsole>();
2024-07-13 03:21:35 +02:00
builder.Services.AddMudServices();
2024-07-13 03:21:35 +02:00
await builder.Build().RunAsync();
}
}
}