I thought this might be useful in some cases so I decided to write about it. This is how you can get the machine’s FQDN in C#: Dns.GetHostEntry("localhost").HostName
I encountered several times in the following scenario: I have a list of business objects. My wish is to invoke an action on each of these objects, all of theses actions will be invoked asynchronously using the Thread Pool and it will block until all the asynchronous actions are complete. I've written a useful extension that makes this scenario very simple to code. var list = new [] { 1, 2, 3, 4, 5 }; list.WaitAsyncForEach(i => Console .WriteLine( "Invoked async for '{0}'"...