No video

Use HttpClient Properly with HttpClientFactory With Named and Typed Clients in .NET

  Рет қаралды 2,832

Code Maze

Code Maze

Күн бұрын

Пікірлер: 19
@CodeMaze
@CodeMaze 5 ай бұрын
Thank you all for watching and for your support. ►► If you want to master Web API development using best practices, check out our Web API book: bit.ly/3x75ZMM ►► Also, to build great full-stack apps with Blazor, check out our course: bit.ly/3Pw3Y33
@cocacola7535
@cocacola7535 7 күн бұрын
I like your videos. You keep showing texts explaining important concepts. It is very helpful to emphasize them.
@CodeMaze
@CodeMaze 7 күн бұрын
Glad to hear that! Thanks for watching my videos.
@philipquarles4679
@philipquarles4679 2 ай бұрын
Hi Marinko, It's clearly explained and worked as expected. I was looking for something like this for a long time. However, my use case is slightly different. I need to protect my Azure function app instead of my WebApi. Do you have any thoughts?
@CodeMaze
@CodeMaze 2 ай бұрын
Hi Philip. First of all thanks for the kind words. I didn't work with Azure at all, well I did something small, but nothing more than that, so I hardly can help you with that.
@philipquarles4679
@philipquarles4679 2 ай бұрын
@@CodeMaze Thank you for getting back to me!
@I-PixALbI4-I
@I-PixALbI4-I 5 ай бұрын
Thx for video!
@CodeMaze
@CodeMaze 5 ай бұрын
My pleasure. Thanks for watching.
@10Totti
@10Totti 5 ай бұрын
Best Tutorial i use Tuyped Clients.
@CodeMaze
@CodeMaze 5 ай бұрын
Thank you very much. Yeah, I also prefer typed clients.
@andresbeltran5779
@andresbeltran5779 5 ай бұрын
Excellent 😬😬
@CodeMaze
@CodeMaze 5 ай бұрын
Thank you. Glad you like it.
@user-tb3js1zh1l
@user-tb3js1zh1l 5 ай бұрын
Hi Marinko, is it better to configure your type client using action delegate while registering it or in constructor like you did? You are injecting http client inside CompaniesClient, i assume that is possible to configure base url and timeout inside program.cs while registering CompaniesClient. Best regards
@CodeMaze
@CodeMaze 5 ай бұрын
Hi. You can configure it inside the Program class, if you search through some of Microsoft's documentation, you will see they have similar examples. But, for me, it is always better to encapsulate that HttpClient configuration inside the typed client class, making the Program class cleaner with less configuration logic. Also, this is configuration strictly related to that specific client, so why not having it inside the typed client's class.
@StefanLeshi
@StefanLeshi 5 ай бұрын
Great video
@CodeMaze
@CodeMaze 5 ай бұрын
Glad you enjoyed it
@StefanLeshi
@StefanLeshi 5 ай бұрын
@@CodeMaze i was curently workimg with http client and was looking how to optimize it so yeah this video made much easier , keep it up woth videos tnx.
@CodeMaze
@CodeMaze 5 ай бұрын
I am so glad to hear that. Sorry for the late response, didn't see your reply.
That's NOT How Async And Await Works in .NET!
12:25
Codewrinkles
Рет қаралды 21 М.
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 28 МЛН
Happy birthday to you by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 12 МЛН
Секрет фокусника! #shorts
00:15
Роман Magic
Рет қаралды 43 МЛН
what will you choose? #tiktok
00:14
Анастасия Тарасова
Рет қаралды 6 МЛН
Use HttpClient the correct way to avoid socket exceptions
9:25
Round The Code
Рет қаралды 980
HTTP Polling vs SSE vs WebSocket vs WebHooks
22:22
ByteVigor
Рет қаралды 2,4 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 156 М.
"Stop Using Async Await in .NET to Save Threads" | Code Cop #018
14:05
Don't Use Polly in .NET Directly. Use this instead!
14:58
Nick Chapsas
Рет қаралды 58 М.
Blazor and JWT Refresh Tokens
16:07
Coding Tutorials
Рет қаралды 3,9 М.
Implementing API Gateway With Ocelot in ASP.NET Core
13:26
Code Maze
Рет қаралды 2,1 М.
The Logging Everyone Should Be Using in .NET
15:34
Nick Chapsas
Рет қаралды 61 М.
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 28 МЛН