diff options
Diffstat (limited to 'SovereignDemesneAzure/SovereignDemesneRazor/Program.cs')
-rw-r--r-- | SovereignDemesneAzure/SovereignDemesneRazor/Program.cs | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/SovereignDemesneAzure/SovereignDemesneRazor/Program.cs b/SovereignDemesneAzure/SovereignDemesneRazor/Program.cs index 3fc1946..3a0ade0 100644 --- a/SovereignDemesneAzure/SovereignDemesneRazor/Program.cs +++ b/SovereignDemesneAzure/SovereignDemesneRazor/Program.cs @@ -1,35 +1,34 @@ -namespace SovereignDemesneRazor +namespace SovereignDemesneRazor; + +public class Program { - public class Program + public static void Main(string[] args) { - public static void Main(string[] args) - { - var builder = WebApplication.CreateBuilder(args); + WebApplicationBuilder builder = WebApplication.CreateBuilder(args); - // Add services to the container. - builder.Services.AddRazorPages(); + // Add services to the container. + builder.Services.AddRazorPages(); - var app = builder.Build(); + 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(); - } + // 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.UseHttpsRedirection(); - app.UseRouting(); + app.UseRouting(); - app.UseAuthorization(); + app.UseAuthorization(); - app.MapStaticAssets(); - app.MapRazorPages() - .WithStaticAssets(); + app.MapStaticAssets(); + app.MapRazorPages() + .WithStaticAssets(); - app.Run(); - } + app.Run(); } } |