Repository navigation
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? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The way HttpClient is configured in Blazor WASM project is via the use of
IServiceCollection.AddScoped<T>()The extension method of
IHttpClientBuilder.AddStandardResilienceHandleris an extension onIHttpClientBuilder. So my question is canMicrosoft.Extensions.Http.Resiliencebe used for Blazor WASM project?I tried to disable the
AddScopedin 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
All reactions