Relative Content

Tag Archive for c#blazor

GetAsync Call in Blazor WebAssembly Fails

I believe something which I don’t understand about Blazor coming from Windows form development is happening here. I am trying to get data from an API which I know is working correctly and delivering data correctly to another application. To me it appears that the code is being terminated prior to allowing the async call to finish.

Blazor injecting into a DelegatingHandler

Within my blazor app i have a webassembly app and a web api app.
I have written a base for a DelegatingHandler within my webassembly to get my token from local storage and send it.
I will want to send the token and if the response is a unauthorized one then ill send a refresh token.
When i create my handler like this:

Issue with bind-Value, object failing to be created

I’m working on a Blazor application and I’m having trouble with my login form. The LoginModel object is always empty when it’s passed to my HandleLogin method, causing the login process to fail. Additionally, I’m encountering the following error: