39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
|
using MudBlazor.Services;
|
|
|
|
namespace OI.Metrology.Client;
|
|
|
|
internal class Program
|
|
{
|
|
private static void Main(string[] args)
|
|
{
|
|
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
|
|
|
|
// Add services to the container.
|
|
_ = builder.Services.AddRazorPages();
|
|
_ = builder.Services.AddServerSideBlazor();
|
|
|
|
_ = builder.Services.AddMudServices();
|
|
|
|
WebApplication app = builder.Build();
|
|
|
|
// Configure the HTTP request pipeline.
|
|
if (!app.Environment.IsDevelopment())
|
|
{
|
|
_ = app.UseExceptionHandler("/Error");
|
|
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
|
|
_ = app.UseHsts();
|
|
}
|
|
|
|
_ = app.UseHttpsRedirection();
|
|
|
|
_ = app.UseStaticFiles();
|
|
|
|
_ = app.UseRouting();
|
|
|
|
_ = app.MapBlazorHub();
|
|
_ = app.MapFallbackToPage("/_Host");
|
|
|
|
app.Run();
|
|
}
|
|
} |