Whenever possible, you should handle errors directly in the call chain. However, it is also good to have a global error handler installed so that no implementation details get leaked to the public.
In this video, we will create a basic Minimal API with a broken endpoint. Then, we will create a global error handler to address the error, in case we do not catch it in the specific endpoint where it happens.
Full Training Courses:
Source Code:
Mailing List:
Смотрите видео Global Error Handling in C# Minimal APIs онлайн, длительностью 13 минут 59 секунд в хорошем hd качестве, которое загружено на канал IAmTimCorey 25 Март 2024. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 16 тысяч раз и оно понравилось 535 посетителям.