Honza K.
Trying to scaffold a controller for ASP .NET api using MongoDB but get this message
This shit gets broken quite often actually... I never managed to fix it, I always created a new empty project and did the scaffold action there and just copied the stuff out to my actual project 😄
5 replies
Scheduling task in c# with failproof mechanism
try to take a look at this https://www.youtube.com/watch?v=73Q5EabiEHM
14 replies
Parallel.For but that doesn't allocate.
what are you comparing it against? if you want to benchmark something, try using this https://github.com/dotnet/BenchmarkDotNet
4 replies
Organizing and naming different closely related Dtos
at work we have an API for a service, the service is public but we're the only one using the API and we're distributing the client apps... and let me tell you, the API is done exactly as REST API should be... but oh boy, it has so many endpoints and it's so fucking complex to do the simplest things... I wish the API was tailored to the applications... To get an account that owns a device, I have to get account id from the device detail, to get the device detail i have to fetch it via device id and then fetch the owning account... Why? because that's how the rest api should be... We have 3 applications, no client ever can call the API itself (we won'T give them the crypto protocol documentation so they couldn't authorize :D) but no, there cannot be an endpoint that would give the app exactly what the app needs, that would go against the api design
47 replies