Does Microsoft.Extensions.Http.Resilience works for Blazor project? #5234
Unanswered
aDisplayName
asked this question in
Q&A
Replies: 1 comment 1 reply
-
That error basically says the HttpClient is being asked to make a request to a relative URI without a specified base address. What's the stack trace for that exception? Can you confirm whether the used HttpClient has a valid base address or not? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The way HttpClient is configured in Blazor WASM project is via the use of
IServiceCollection.AddScoped<T>()
The extension method of
IHttpClientBuilder.AddStandardResilienceHandler
is an extension onIHttpClientBuilder
. So my question is canMicrosoft.Extensions.Http.Resilience
be used for Blazor WASM project?I tried to disable the
AddScoped
in setup, and instead of usingand it seems it doesn't work at all, an exception is thrown:
Would be great if the resilience library be used for Blazor as well.
@martintmk @danroth27
Beta Was this translation helpful? Give feedback.
All reactions