Problem For speed we sometimes return response to consumer before state is saved in DB. Sometimes (Mostly for our automated […]
Tag: async-await
Regarding “Local variables should not be declared and then immediately returned or thrown” [closed]
Problem Closed. This question is off-topic. It is not currently accepting answers. Missing Review Context: Code Review requires concrete code […]
Toggle any application feature ON or OFF
Problem When testing or debugging applications it’d be often useful to be able to run it without certain features like […]
Lazy Init if the Items property is null
Problem I was refactoring a quite large WPF project and I found some pieces of code where it can leads […]
ForEachAsyncSemaphore asynchronously processing tasks but enable fast fail
Problem I know this has been done many times before, but this is my existing code taken from a sample […]
IsoStorageManager
Problem A manager for a speedy async saving objects to isolated storage, using serialization from Newtonsoft.Json. A project to play […]
Enforcing C# Task to exist only once at any given point of time for a given ID
Problem There were multiple times in different applications that I needed to accomplish the following behavior with C# Task and […]
Scheduling using System.IObservable 2.0
Problem As a follow up to this first attempt to create and use my own IObservable<T> implementation, this is version […]
Retrying a RestRequest
Problem I wrote a method that lets me retry RestSharp requests when a specific exception is thrown. Here’s the code […]
Batch processing requests
Problem I have a service which receives many requests and I am trying to optimize it by aggregating requests in […]