WCF Service call blocks Message

Topics: Prism v4 - WPF 4
Jul 12, 2011 at 2:04 AM

We are trying to implement a simple status bar at the Shell View level as a subscriber to an inner view model publishing a message via eventAggregator however the message is blocked by the view model thread as we make a long running call to a back end service.  It appears to block until the Synchronous WCF service call returns even though we have subscribed on the UI Thread.

Any insight would be greatly appreciated.


Jul 12, 2011 at 7:53 PM


If you choose to subscribe from the UI Thread, the susbcriber will be called on the same thread where the UI operations are handled, thus blocking the UI while your synchronous operations are carried out.

You could specify that you wish to subscribe from a Background Thread, as explained on this article from the Prism MSDN documentation.

I hope you find this helpful.

Guido Leandro Maliandi