Using the AutoResetEvent class to wake multiple threads in C#.

“I’ve been waiting for you, Obi Wan.” – Darth Vader. One of the big differences between a ManualResetEvent and an AutoResetEvent (WaitHandles) in the .NET Framework is that a ManualResetEvent can wake up multiple waiting threads, whilst an AutoResetEvent can only wake up one of the waiting threads. When set/triggered, the ManualResetEvent stays in that state […]

Creating a REST JSON WCF Service with C# .NET.

“Boring conversation anyway.” – Han Solo. Ok, I think this post possibly has too many acronyms in the title. This post is about creating a WCF service that can be consumed by a client using the REST (representational state transfer) architectural style, and using JSON (JavaScript Object Notation) for data transfer. Why would we do […]