Lukaa
Proper way to do per user state management in Blazor with Identity
Hi. I am attempting to have state management with blazor & identity. So basically I want to acquire the current user in the ManageLayout and then reuse the data in navmenu or in @body. I was thinking of just passing them as parameters, but you need some kind of synchronization due to asynchronous user retrieval. this is my state code :
Currently this doesn't work in another component, when
Username
is initialized it doesn't really notify all components even though the state is injected, I assume that's due to service being Scoped
. How is the conventional way to approach this issue?
ManageLayout.razor :
Index.razor
2 replies
Docker + Blazor + MSSQL handshake error
When I run dotnet ef database update I get the following error :
Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 35 - An internal exception was caught)
I'm using WSL btw12 replies
WCF TransportBindingElement error with default bindings - basicHttpBinding
Hi, I have a WCF service that I self host on a console app, and when trying to consume it on the client I get an error saying that every custom binding requires a transport binding element, but I'm literally running on default configs. Anyone had a similar experience?
2 replies