Problem My question is regarding a rather inelegant solution to a problem that I came up with a while ago. […]
Tag: task-parallel-library
Await state async
Problem For speed we sometimes return response to consumer before state is saved in DB. Sometimes (Mostly for our automated […]
WhenAll for .NET 3.5
Problem I am trying to write a version of Task.WhenAll for .NET 3.5 using the “Task Parallel Library for .NET […]
Task Execution with Cancel Logic
Problem In my assignment I am executing a long running NodeJs script from C# using EdgeJs. Since the script may […]
Thread-safe database updates
Problem I have the following method that will return VariantID for given VariantName (“Name” in db). To avoid calling my […]
Measure a given method’s execution time – follow-up
Problem A long time ago, I’ve written a method that would allow me to measure the amount of time a […]
Generate all available numbers for pattern, shuffle and save to multiple files
Problem I’ve build simple application that allows me to generate all numbers that have desired length and start with prefix. […]
Asynchronous retry method
Problem I’ve written an asynchronous retry method as an answer for this question. I’d like to get your opinion of […]
Run multiple prerequisite methods in parallel before continuing
Problem I have an application in which I have multiple slow running prerequisite methods I need to call in order […]
C# extension method to do some action if a target operation takes too long time to finish
Problem I have a potentially long running operation and I want to trigger some action if takes too long time. […]