From 9ea2599553cc096b8ae39dce901bbd723a395907 Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Mon, 19 May 2025 15:25:59 +0200 Subject: [PATCH] Remove DependencyInjection class and global exception handler The entire `DependencyInjection` class has been removed, including the `UseGlobalExceptionHandler` extension method and its associated `using` directive. This change eliminates the functionality for setting up global exception handling middleware in the application. --- DigitalData.Core.Exceptions/DependencyInjection.cs | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 DigitalData.Core.Exceptions/DependencyInjection.cs diff --git a/DigitalData.Core.Exceptions/DependencyInjection.cs b/DigitalData.Core.Exceptions/DependencyInjection.cs deleted file mode 100644 index 0ca90c1..0000000 --- a/DigitalData.Core.Exceptions/DependencyInjection.cs +++ /dev/null @@ -1,12 +0,0 @@ -using Microsoft.AspNetCore.Builder; - -namespace DigitalData.Core.Exceptions; - -public static class DependencyInjection -{ - public static IApplicationBuilder UseGlobalExceptionHandler(this IApplicationBuilder app) - { - app.UseMiddleware(); - return app; - } -}