Software Engineering
I’m learning more about minimal APIs in .NET, and a training course covered how to do exception handling at the endpoint group level using a filter. This Microsoft documentation describes other uses for filters, such as validation that can run before an endpoint handler is invoked.
Global Exception Handling in ASP.NET
Although you can handle exceptions using endpoint filters, typically an application will have a global handler. This post describes several approaches for exception handling (ordered from worst to best).
This course takes you from “File > New Project” to a decently capable API using Swagger, C#, .NET 10, Entity Framework, and ASP.NET Identity. The lack of polish made me give this one 3.5 out of 5. The course could have been shorter (12 hours), many parts are inconsistent, and there are zero tests. Parts of the accompanying documentation don’t even compile. Having to work through the course’s deficiencies means I understand things better, but I’m not sure that was the intent.