Doombox
❔ ✅ System.Text.Json paths
Does STJ support paths in some way? In NSJ I would use a
ContractResolver
and a custom attribute to handle this
Essentially I want to access this (pointlessly) nested property
in NSJ I could define this attribute[JsonPathProperty("Time.time")]
and use a ContractResolver
to drag the value back up, preventing needless object bloat.12 replies
Correctly reading tabs from text file. [Answered]
I have some Markdown files that are just this
and I'm reading them like this
however the tabbed items are having their tabs stripped from them and the output is just a bunch of strings split by
\r\n
, not sure how I'm supposed to read it correctly to preserve the tabs4 replies
WPF Handling crashes more gracefully. [Answered]
I'm currently using this setup which correctly logs and displays feedback correctly, however after the messagebox is closed the application window hangs around for a few seconds completely locked up, calling
.Dispose()
to clean up the NotifyIcon
in the tray more than doubles the time. Is there a way to force the window closed?
12 replies
Using multiple RateLimiters correctly. [Answered]
I'm wrapping an API which requires no more than 4 requests per second and 200 per hour, I've got a setup like this
this works well if you await each call of
Test
, however if you try something like this...
the rate limiter seems to break, have I written this poorly or is this just an issue with concurrency in the library?5 replies
Creating an installer for an app. [Answered]
Bizarrely this is something I've never actually bothered with, but what's the best way to create an installer that publishes + bundles all your projects together? I have a WPF app and a 2nd CLI tool for updating the WPF app.
32 replies
JsonSerializer.DeserializeAsync() randomly hangs indefinitely [Answered]
System.Text.Json
's DeserializeAsync
seems to (entirely at random) decide to hang indefinitely, throws no exceptions or anything in the process which is odd, it's always the same file in AppData
that causes it to hang.57 replies