Refactor exception handling middleware
Updated DependencyInjection to use GlobalExceptionHandler. Removed ExceptionHandlingMiddleware and added GlobalExceptionHandlerMiddleware for unified exception handling across the application.
This commit is contained in:
@@ -4,9 +4,9 @@ namespace DigitalData.Core.Exceptions;
|
||||
|
||||
public static class DependencyInjection
|
||||
{
|
||||
public static IApplicationBuilder UseExceptionHandlingMiddleware(this IApplicationBuilder app)
|
||||
public static IApplicationBuilder UseGlobalExceptionHandler(this IApplicationBuilder app)
|
||||
{
|
||||
app.UseMiddleware<ExceptionHandlingMiddleware>();
|
||||
app.UseMiddleware<GlobalExceptionHandlerMiddleware>();
|
||||
return app;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user