Remove CS0618 warning suppression for ExceptionHandlingMiddleware

Removed #pragma directives that suppressed CS0618 (obsolete API usage) warnings around app.UseMiddleware<ExceptionHandlingMiddleware>(). Obsolete warnings for this middleware will now be shown during compilation.
This commit is contained in:
2026-03-25 10:28:49 +01:00
parent 520aec427b
commit bd07b4482c

View File

@@ -70,9 +70,7 @@ try
var app = builder.Build();
#pragma warning disable CS0618
app.UseMiddleware<ExceptionHandlingMiddleware>();
#pragma warning restore CS0618
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment() || config.GetValue<bool>("UseSwagger"))