.Net Core 3.0. I have a repo where IMemoryCache gets injected. Repo is registered as Transient. I would like for the cache to be cleared/reset PER request, howe
My goal is to use the modern Windows 10 themed context menu with my C# application's tray icon. Eartrumpet's tray icon context menu uses it so I know it is poss
I have installed OWASP ZAP 2.8.0 and scan our site fully. In result we got some SQL injection URL's or pages. So We have fixed that SQL injection issues in deve
When I attempt to run my .Net Web Application as a Windows Service, it does not start. It works if I just run the executable but mysteriously fails when attempt
I am trying to make the textbox valid when just the user writes 5 digits but the problem is if I for example input (11111) it will be correct, the program will
I'm looking for a way to add comments on record properties, in C# 9 When I try this code : public record Person { /// <summary> /// Gets the first
My Xamarin.UWP suddenly won't load after Visual Studio 2017 15.4. I did update my Xamarin PCL and others. But the UWP Project will not load anymore. I can't g
I want to try net5.0 since it's in rc2, and I've encountered a strange issue. I've created a default WebApi in net5.0. I didn't touch anything, I just clicked r
I am trying to run python script in c# with process. private void RunScript() { ProcessStartInfo processStartInfo = new ProcessStartInfo("python.exe", "c:\\
I am writing a Connection like class around an interop object. In particular, the closing of my connection is asynchronous. The object I am in
I'm using Azure Functions App and c# for coding. I want to clear the cache every 10 minutes for example, if there is a way to do that in the code ?
I'm a bit stuck with the problem of creating a custom adapter for the Visual Studio test explorer. (Btw I'm using VS 2019). I need to create m
If we delay a Task using the Task.Delay method for a very long time, let's say 6 months, and if we assume that the OS does not shutdown or restart during this p
I have around 40 entities and everytime after I compile and run my app it takes almost 10 seconds whenever DbContext is called for the first time. Is there a wa
When Rider detects you are using some version control it will show for example gray triangles next to line numbers in places when some code was removed (within
I want to release a source generator package, and I want to include a private project dependency on the source generator project. For example, assume that my pr
I'm new to programming in general. With another Script i store in the list "spawnPointC" all gameobjects called spawnPointC that appear from spawning other pref
We have a class library that uses the .NET WebBrowser control to authorize access to a third-party API, either with that third-party's oAuth2 Authorization flow
I'm having issues trying to access auth/admin/realms/{realm-name}/users API. I've already tried everything from other questions and answers, but nothing seems t
How do you get Microsof.tML to run on an NVDIA GPU using C#? I followed the instructions https://github.com/dotnet/machinelearning/blob/master/docs/api-referen