Files
dev-ops-test/DevOpsTest/DevOpsTest/Program.cs
T
pooria.sh efeebd85da
Release Docker Image / build-and-push (release) Failing after 5s
Release NuGet Packages / pack-and-push (release) Successful in 46s
2.0.0
2026-05-20 16:36:00 +03:30

36 lines
998 B
C#

using DevOpsTest.Client.Pages;
using DevOpsTest.Components;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents()
.AddInteractiveWebAssemblyComponents();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseWebAssemblyDebugging();
}
else
{
app.UseExceptionHandler("/Error", createScopeForErrors: true);
// 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.UseStatusCodePagesWithReExecute("/not-found", createScopeForStatusCodePages: true);
app.UseHttpsRedirection();
app.UseAntiforgery();
app.MapStaticAssets();
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode()
.AddInteractiveWebAssemblyRenderMode()
.AddAdditionalAssemblies(typeof(DevOpsTest.Client._Imports).Assembly);
app.Run();