Middleware Pattern For HttpClient With Delegating Handlers

Опубликовано: 01 Сентябрь 2023
на канале: Milan Jovanović
15,490
667

☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt
📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ
🚀 Support me on Patreon to access the source code:   / milanjovanovic  

HttpClient allows you to send HTTP requests to external services. But do you know how to add middleware to an outgoing request? Middleware allows you to add behavior before or after the request. And you can also do that with HttpClient requests using custom message handlers. Find out how in this video.

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Read my Blog here:
https://www.milanjovanovic.tech/blog

Subscribe for more:
   / @milanjovanovictech  

Chapters
0:00 Taking a look at the typed HttpClinet
1:40 Adding authentication headers using DelegatingHandler
6:52 Creating logging middleware with a DelegatingHandler
10:27 Resilient DelegatingHandler with retries using Polly


Смотрите видео Middleware Pattern For HttpClient With Delegating Handlers онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Milan Jovanović 01 Сентябрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 15,490 раз и оно понравилось 667 людям.