Logging a message to a file for debugging purposes using C#.

There are any number of times where I find myself puzzled over a problem that exists on a remote server and cannot be reproduced on my local development box. There are different ways to solve this, but sometimes it’s just helpful to have a way to log messages to a file. This last incident involved …

Continue reading ‘Logging a message to a file for debugging purposes using C#.’ »

Threading and ManualResetEvent vs Thread.Sleep

Found this really interesting post on StackOverflow that clarified the performance difference between using events and the more obvious but less efficient Thread.Sleep(). We have a real-time messaging app that we wanted to wait on calling back the client if a message was not queued up for delivery (to avoid unnecessary callbacks if messages were …

Continue reading ‘Threading and ManualResetEvent vs Thread.Sleep’ »