The Easy Way To Synchronously Call WCF Services In Silverlight

added by JohnnyCake
3/17/2010 11:29:55 AM


If you're reading this you probably know why Microsoft tries to force the use of asynchronous WCF service calls in Silverlight. While they may have a strong case for their decision, it can lead to bloated, messy code when several service calls are chained together. The following extension method, through heavy use of reflection, allows for synchronous service calls. Remember, do not block the UI thread.