DCSIMG
C# - Zuker On Foundations

Zuker On Foundations

The realm of .NET (WPF, WCF and all around)

Browse by Tags

All Tags » C# (RSS)
Get the fully qualified domain name (FQDN) in .NET C#
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

Posted Saturday, June 05, 2010 6:40 PM by Amir Zuker | 1 comment(s)

תגים:, ,

Asynchronous Invocation - Enumerable Extension
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}'"...

Posted Thursday, January 15, 2009 3:24 PM by Amir Zuker | with no comments

תגים:, ,