Exception Handling in ASP.NET Core – Middleware vs Filters – What's Best?

Codewrinkles
Codewrinkles
19.2 هزار بار بازدید - 2 سال پیش - When it comes to global
When it comes to global exception handling in ASP.NET Core we have two major options: we either use an exception handling middleware or an exception filter. But what's the best way to go? As almost always in programming, it depends. The most important thing is to understand how these approaches are different and take informed decisions. In this video I provide a theoretical and practical comparison between these two approaches. But, in the end, the decision is yours.
#AspNetCore #DotNetCore #dotnet  

Join this channel to get access to perks:
@codewrinkles

VIDEO: FIlters in ASP.NET Core: Unlock the Power of ASP.NET Core Filt...

Contents
1. Intro: 00:00
2. Demo app overview: 01:41
3. The error contract: 03:00
4. Exception handler middleware: 04:55
5. Exception filter: 07:27
6. Theoretical difference between middleware and filter: 09:28
7. Practical differences: 11:10
8. Conclusion: 18:11
2 سال پیش در تاریخ 1401/08/15 منتشر شده است.
19,283 بـار بازدید شده
... بیشتر