Call Web Api in .Net 6 Blazor Server HttpClient Rest Api

preview_player
Показать описание
In this video we will learn how to call web api in .net 6 from blazor server project

Рекомендации по теме
Комментарии
Автор

Perfect. I have subscribed. Thanks a lot.

imadabab
Автор

8:04. I would like to know where to code comes from. The last part isnt even shown, it's just ctrl + c.

MYGamingCrafters
Автор

I have a very important question, thank you for your concern letting me know aabout it. Very often we need to use for blazor a scoped service, I used the addhttpclient using this factory,
instead of the classic httpclient by default that can cause socket exhaustion, like in your video, but the problem is that the addhttpclient ALWAYS make the service transient!!!
how can I still use it but make it a scoped service!??? thank you!

philibertande
Автор

Thanks for the video! Maybe stupid question - but why do we need to do API calls within one application? Can't we just inject some service that will return needed data directly to component?

SupraStututututu
Автор

Let say I have web api identity .How can do authentication and authorization by calling the associated api ?

cissemy
Автор

I have been wondering how to use web api without making it a startup project. Ini this tutorial I find the answer, instead of having two or three, you create one project (blazor in one) ..

But if I still have 3 projects, web api, blazorapp, models. Can I have only one startup project which is blazorapp but still able to call web api ???

j-bubble
Автор

If you have more than one service say 10, how to call only once the base address, your way needs to call it 10 times how to configure so that HttpClient has only once the BaseUrl

bereketadmassu
Автор

Very helpful tutorial. But can you please give a github link to the source codes?

mukailarashid
Автор

How do you publish this website? I tried to host the website but it only publishes 1 project, the frontend is not linked to the backend where the business logic is.

FrigginM
Автор

Thank you very much. why should we install the package httpclient.blazor? is there another way without to install this package?

basselbakkar
Автор

Can i Use Same Tricks on Make MAUI Blazor App ????

DhirenPathak