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 […]

Programatically using the BasicHttpsBinding and UserNamePasswordValidator classes in a WCF C# .NET Windows Service.

“Now we find out if that code is worth the price we paid.” – Princess Leia I wrote an article recently regarding how to create a WCF based C# .NET Windows Service (here). I’m going to build upon that further here by moving from the BasicHttpBinding class to the BasicHttpsBinding class, and from Windows authentication to […]