<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Wait messages and asynchronous calls in Silverlight 2</title>
	<atom:link href="http://www.nerdcore.com.br/blog/2009/02/wait-messages-and-asynchronous-calls-in-silverlight-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nerdcore.com.br/blog/2009/02/wait-messages-and-asynchronous-calls-in-silverlight-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=wait-messages-and-asynchronous-calls-in-silverlight-2</link>
	<description>nerd &#039;n&#039; proud</description>
	<lastBuildDate>Mon, 23 Jan 2012 07:55:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Rafael Costa</title>
		<link>http://www.nerdcore.com.br/blog/2009/02/wait-messages-and-asynchronous-calls-in-silverlight-2/comment-page-1/#comment-3841</link>
		<dc:creator>Rafael Costa</dc:creator>
		<pubDate>Mon, 23 Jan 2012 07:55:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdcore.com.br/blog/?p=41#comment-3841</guid>
		<description>Nice catch, bob! I wrote that from the top of my had and missed that detail. Fixed :-)</description>
		<content:encoded><![CDATA[<p>Nice catch, bob! I wrote that from the top of my had and missed that detail. Fixed <img src='http://www.nerdcore.com.br/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Swaroop</title>
		<link>http://www.nerdcore.com.br/blog/2009/02/wait-messages-and-asynchronous-calls-in-silverlight-2/comment-page-1/#comment-3840</link>
		<dc:creator>Swaroop</dc:creator>
		<pubDate>Thu, 19 Jan 2012 23:54:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdcore.com.br/blog/?p=41#comment-3840</guid>
		<description>Good article !
I did exactly the same thing recently. 
I made the background thread to sleep for 15sec after calling the async operation.
My problem is that, sometimes my async operation is completing in 5 sec while sometimes it goes over 15 sec. 
If the operation gets over before 15 sec , its fine for me....i have no issues even if the user has to wait for sometime before the next operation begins.

But, if the operation takes more than 15 sec to complete, then my next operation is getting triggered by my first operation run_completed event. And I am displaying messages to the useron UI thread before the start of each operation and after the end of each operation.
What this does is, before my first operation message completed message, the second operation start message is getting displayed. And I cannot stop this. 

The only way out for me right now is to increase my sleep time (from 15 - 30 sec) in order to get right messaging displayed to the user. Still I think this is just a workaround and not a proper solution. 

What else can be done in this case? Do you have any suggestions for me to overcome this? 

Thanks,


Swaroop</description>
		<content:encoded><![CDATA[<p>Good article !<br />
I did exactly the same thing recently.<br />
I made the background thread to sleep for 15sec after calling the async operation.<br />
My problem is that, sometimes my async operation is completing in 5 sec while sometimes it goes over 15 sec.<br />
If the operation gets over before 15 sec , its fine for me&#8230;.i have no issues even if the user has to wait for sometime before the next operation begins.</p>
<p>But, if the operation takes more than 15 sec to complete, then my next operation is getting triggered by my first operation run_completed event. And I am displaying messages to the useron UI thread before the start of each operation and after the end of each operation.<br />
What this does is, before my first operation message completed message, the second operation start message is getting displayed. And I cannot stop this. </p>
<p>The only way out for me right now is to increase my sleep time (from 15 &#8211; 30 sec) in order to get right messaging displayed to the user. Still I think this is just a workaround and not a proper solution. </p>
<p>What else can be done in this case? Do you have any suggestions for me to overcome this? </p>
<p>Thanks,</p>
<p>Swaroop</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bob</title>
		<link>http://www.nerdcore.com.br/blog/2009/02/wait-messages-and-asynchronous-calls-in-silverlight-2/comment-page-1/#comment-3837</link>
		<dc:creator>bob</dc:creator>
		<pubDate>Sun, 20 Nov 2011 03:56:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdcore.com.br/blog/?p=41#comment-3837</guid>
		<description>Thread.CurrentThread.Sleep(new TimeSpan(0, 0, 3));

should be written as

Thread.Sleep(new TimeSpan(0, 0, 3));

since Sleep is a static method</description>
		<content:encoded><![CDATA[<p>Thread.CurrentThread.Sleep(new TimeSpan(0, 0, 3));</p>
<p>should be written as</p>
<p>Thread.Sleep(new TimeSpan(0, 0, 3));</p>
<p>since Sleep is a static method</p>
]]></content:encoded>
	</item>
</channel>
</rss>

