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

  Рет қаралды 14,635

Coding Jackpot

Coding Jackpot

Күн бұрын

In this video we will learn how to call web api in .net 6 from blazor server project
Download source code : www.buymeacoffee.com/codingja...

Пікірлер: 30
@nene1964
@nene1964 Жыл бұрын
This was so helpful. Thank you!
@imadabab
@imadabab 8 ай бұрын
Perfect. I have subscribed. Thanks a lot.
@adam-xt8te
@adam-xt8te 8 күн бұрын
Hey, what about performance? There is SignalR communication plus API requests. Isn't it slow?
@MYGamingCrafters
@MYGamingCrafters 2 жыл бұрын
8:04. I would like to know where to code comes from. The last part isnt even shown, it's just ctrl + c.
@jimbenson6769
@jimbenson6769 Жыл бұрын
He wants you to pay for it
@philibertande3097
@philibertande3097 2 жыл бұрын
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
@CodingJackpot
@CodingJackpot 2 жыл бұрын
do you want to use both http client and the service in builder.Services.AddScoped ?
@SupraStututututu
@SupraStututututu Жыл бұрын
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?
@Te3Que
@Te3Que Жыл бұрын
say you serve the users only with a website you could do that, but if your service expands into multiple websites or, you develop an app to ease the ux for mobile users. An api to serve the information is the better solution, since you can then maintain the api instead of all the individual services when there is a change.
@cissemy
@cissemy Жыл бұрын
Let say I have web api identity .How can do authentication and authorization by calling the associated api ?
@j-bubble7335
@j-bubble7335 2 жыл бұрын
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 ???
@CodingJackpot
@CodingJackpot 2 жыл бұрын
if the port number is different then we need to have two startup projects but if it is same then we can have just one startup project
@j-bubble7335
@j-bubble7335 2 жыл бұрын
@@CodingJackpot thank you
@bereketadmassu8399
@bereketadmassu8399 Жыл бұрын
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
@mukailarashid5428
@mukailarashid5428 2 жыл бұрын
Very helpful tutorial. But can you please give a github link to the source codes?
@CodingJackpot
@CodingJackpot 2 жыл бұрын
www.buymeacoffee.com/codingjackpot/e/82770
@FrigginM16
@FrigginM16 Жыл бұрын
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.
@CodingJackpot
@CodingJackpot Жыл бұрын
Where did you try to deploy it .. on azure cloud web app ?
@FrigginM16
@FrigginM16 Жыл бұрын
​@@CodingJackpot I published it by Web Deploy on a VPS Windows basic host.
@basselbakkar4743
@basselbakkar4743 Жыл бұрын
Thank you very much. why should we install the package httpclient.blazor? is there another way without to install this package?
@CodingJackpot
@CodingJackpot Жыл бұрын
This package is required for calling APIs it's official package from .net team
@basselbakkar4743
@basselbakkar4743 Жыл бұрын
@@CodingJackpot Thanks for your reply
@DhirenPathak
@DhirenPathak 2 жыл бұрын
Can i Use Same Tricks on Make MAUI Blazor App ????
@CodingJackpot
@CodingJackpot 2 жыл бұрын
Yes you can use the same way for .Net MAUI
@DhirenPathak
@DhirenPathak Жыл бұрын
Can you please make us for sample ??
@roberttomlin6565
@roberttomlin6565 Жыл бұрын
Is it https?
@CodingJackpot
@CodingJackpot Жыл бұрын
Yes
Blazor Server .Net 6 Google Map , Search Box Integration
9:00
Coding Jackpot
Рет қаралды 9 М.
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 40 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 90 МЛН
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 94 МЛН
.Net 6 Confirm Dialog Box Blazor Server Gridview using Modal Popup
23:22
Call REST API from ASP NET Core Blazor
9:58
kudvenkat
Рет қаралды 68 М.
SEC000: Securing Blazor & Web APIs with AAD
30:25
Hassan Habib
Рет қаралды 8 М.
Consume REST API from Blazor WebAssembly
20:09
Roozbeh Shad
Рет қаралды 18 М.
Using the HttpContext in Blazor Server the right way
32:59
Codewrinkles
Рет қаралды 12 М.
Using HttpClient in .NET Core to Connect to APIs in C#
45:03
IAmTimCorey
Рет қаралды 188 М.
How To Learn Blazor In 2023
59:44
IAmTimCorey
Рет қаралды 88 М.
Частая ошибка геймеров? 😐 Dareu A710X
1:00
Вэйми
Рет қаралды 5 МЛН
low battery 🪫
0:10
dednahype
Рет қаралды 1,7 МЛН
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 12 МЛН
Проверил, как вам?
0:58
Коннор
Рет қаралды 337 М.
Better Than Smart Phones☠️🤯 | #trollface
0:11
Not Sanu Moments
Рет қаралды 18 МЛН