Menu
  • HOME
  • TAGS

Asynchronous locking based on a key

c#,multithreading,locking,async-await,imageprocessor

As the other answerer noted, the original code is removing the SemaphoreSlim from the ConcurrentDictionary before it releases the semaphore. So, you've got too much semaphore churn going on - they're being removed from the dictionary when they could still be in use (not acquired, but already retrieved from the...

HTTP Module intercept requests and breaks custom errors configuration

asp.net,asp.net-mvc,azure,iis-8.5,imageprocessor

I very strongly suspect this is a bug in Image Processor. The exact same issue was reported in Client Dependency (a module for Umbraco) which, while completely unrelated, is similar in that it was accessing Context.Request.RawUrl at the same stage of the request pipeline. You have two options:- Find a...

C# Recolored Image Pixelated

c#,.net,image-processing,imageprocessor

The images in question are fairly simple, single-color, geometric shapes. Sounds fine but the problem is that your 'Table' of colors is far too short unless the images really and truely contain only the one color you put into the map! But those images most certainly have been drawn...