Turwaith
Very weird params passing error to main Method
Basically the same, for debugging reasons I have added a console.WriteLine for all three args. I have also tried opening the code and putting a breakpoint right at the beginning of the main method so I can explore the args array. Which shows me the same results. And it not only happens when I start the program from command line but also when I start it in Rider using the launchSettings.json file to pass the arguments. Same issue
7 replies
Preventing SQL Injections with string based queries
Yes I am constructing the queries, but the parameters often come in via an API endpoint I provide.
I chose SqlCommand since this is the method I usually use when executing queries on sql databases I control when using C#. It has the option to add parameters and it's easy to use
30 replies
Nuget restore (via gitlab runner) fails at a specific package
Also, when going to the solution location where the runner downloads the git repo to, open a powershell prompt there and go "nuget restore", it works perfectly fine. It finds all the packages and restores them.
8 replies
Nuget restore (via gitlab runner) fails at a specific package
No, it is the old, ugly version. Also I got some more insight.
It is specifically the package Microsoft.Toolkit.Uwp.Notifications/7.1.3 that is failing. The verbose log of the runner says that it could not be found at the location where the nuget packages are downloaded to. The thing is... it is there. I checked the location on the server and the package is there. Is has the same permissions etc as all the other packages which work.
8 replies
HttpClient does not return anything
Yeah but how do I do that in the context of async programming? Task.Run will put the actual call into another thread, that's fine. And without the .Wait() the code will continue running immediately.
So I need the window to react somehow to the request-thread returning its task. Do I fire an event from there? Or how do I make that the UI threads knows when the call is finished and has returned?
28 replies