Bored Student
Explore posts from serversHow to Dockerize
I have the following docker file
pretty much copy paste from Microsoft https://learn.microsoft.com/de-de/dotnet/core/docker/build-container?tabs=linux&pivots=dotnet-8-0
but i encounter an error i dont have in any other environment about not finding serilog
I looked that my
.csproj
only reference serilog nuget package not the dll directly, and i'm not even using the file sink3 replies
API Endpoint is Invoked with `null` Argument
I am sending the following call
to the Following API endpoint
Yet
ad
is null
and this if
triggers.
First Question : why doesn't the Middleware already stop an Empty request ?
Second Question : I confirmed with the Browser DevTools that the request isn't actually empty, so where does my data go ?
DTO Class for reference
13 replies
Neat String interpolation
I have this little something, and I want the counter to stay fixed width so
[ 1/50]
instead of [1/50]
how can I do this ?
As simple as possible, I just want it to look neat not write a TUI framework.
I found $"{val , fixedWidth}"
but that only works with constants so it can't adapt if I reach 100 files.16 replies
Type Inference strategies?
I'm generating Class Definition from XML. And currently I just save the Value strings. But I want stricter validation abilities, so I want to find suitable base types, e.g. detect number types. Do you have any ideas how to go about that efficiently and how to balance strictness vs. information loss in small types ?
1 replies
Propagate Changes to WPF
I'm using WPF with Unity Container and Prism. I've got a save button which is supposed to activate once I have data. I log
MyCommand.CanExecute()
which is true but it remains disabled in the GUI.
MyCommand.RaiseCanExecuteChange()
does not exist in Prism. (Or at least can't be resolved)2 replies