Teddy
Blazor App - Websocket connection is lost after a while
https://www.twitch.tv/videos/1977263472
(Starts at 1h34m - from .NET Conf)
4 replies
Blazor App - Websocket connection is lost after a while
Not that I'm aware of, it's a similar issue to web apps that have a like 30 minute timeout, and if the tab isn't in focus you might come back to the page and it'll say "logging out in 30 seconds" unless you click whatever button, but it reality, it's already expired and you've already been logged out, so clicking the button won't save the session.
4 replies
✅ whats wrong?
https://learn.microsoft.com/en-us/dotnet/api/system.int32.tryparse?view=net-7.0#system-int32-tryparse(system-string-system-int32@)
Scroll down to Examples
5 replies
❔ BlazorWASM Multi-Tenant Application - Struggle with changing DbContext while Runtime
The issue you're running into is related to the lifetime of Blazor WASM services, which scoped is effectively singleton, so you're using the same service for the lifetime of the application.
https://learn.microsoft.com/en-us/aspnet/core/blazor/fundamentals/dependency-injection?view=aspnetcore-7.0#service-lifetime
8 replies
❔ BlazorWASM Multi-Tenant Application - Struggle with changing DbContext while Runtime
I know this isn't your question, but it's a really bad idea to put your database connection into a client-side application. Anyone who uses it will have access to the connection string.
8 replies
❔ Specify timezone of DateTime converted from localized timestamp without changing the time?
Just don't forget about daylight savings if applicable. As in, if figuring out a future date at specific local time, it might swap from Eastern Standard to Eastern Daylight.
10 replies
❔ Decent terminal UI library or solution
https://www.nuget.org/packages?q=console+ui&frameworks=&tfms=&packagetype=&prerel=true&sortby=created-desc
Terminal.Gui is by far the most used/starred/downloaded
35 replies