Call Yourself an API?
Автор: Coding Tutorials
Загружено: 2025-03-28
Просмотров: 634
If you use Blazor prerendering, then there's a chance that the API server maybe making an HTTP call to itself. Here's how we can use HTTP from the browser, but get the data directly in the server.
Source code available at: https://github.com/JasperKent/BlazorP...
Topics include:
The problem of mocking HttpClient
The problem of the server calling itself
Abstracting HTTP calls into a service
Avoiding async/await on simple asynchronous methods
Configuring HttpClient for a specific service
Configuring different services on the client and the server
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: