<?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 for Andrei Marukovich&#039;s blog</title>
	<atom:link href="http://lunarfrog.com/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://lunarfrog.com/blog</link>
	<description>Willing to learn and share</description>
	<lastBuildDate>Mon, 23 Jan 2012 20:46:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Deceptive simplicity of async and await by Cristoph</title>
		<link>http://lunarfrog.com/blog/2012/01/23/simplicity-of-async-and-await/comment-page-1/#comment-84</link>
		<dc:creator>Cristoph</dc:creator>
		<pubDate>Mon, 23 Jan 2012 20:46:17 +0000</pubDate>
		<guid isPermaLink="false">http://lunarfrog.com/blog/?p=182#comment-84</guid>
		<description>Thx @Andrei,
I had a similar scenario, and if I do: fileStream = await _lastSelectedFile.OpenAsync(FileAccessMode.Read);

sometimes I got access_denied_exception if I try to read/write from the eventhandler method. I&#039;m still investigating how to avoid that so basically if I cache a IRandomAccessStream that was opened by another async method and try to use it in a normal method I got access_denied_exception.</description>
		<content:encoded><![CDATA[<p>Thx @Andrei,<br />
I had a similar scenario, and if I do: fileStream = await _lastSelectedFile.OpenAsync(FileAccessMode.Read);</p>
<p>sometimes I got access_denied_exception if I try to read/write from the eventhandler method. I&#8217;m still investigating how to avoid that so basically if I cache a IRandomAccessStream that was opened by another async method and try to use it in a normal method I got access_denied_exception.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deceptive simplicity of async and await by Andrei Marukovich</title>
		<link>http://lunarfrog.com/blog/2012/01/23/simplicity-of-async-and-await/comment-page-1/#comment-83</link>
		<dc:creator>Andrei Marukovich</dc:creator>
		<pubDate>Mon, 23 Jan 2012 19:36:51 +0000</pubDate>
		<guid isPermaLink="false">http://lunarfrog.com/blog/?p=182#comment-83</guid>
		<description>@Cristoph You still are able to call SetBitmap(), but you are right that before calling it you will need to get the actual data. And the easiest way to get the data is to call OpenAsync() in advance, before the handler is invoked, cache it and use it inside of the handler.</description>
		<content:encoded><![CDATA[<p>@Cristoph You still are able to call SetBitmap(), but you are right that before calling it you will need to get the actual data. And the easiest way to get the data is to call OpenAsync() in advance, before the handler is invoked, cache it and use it inside of the handler.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deceptive simplicity of async and await by Cristoph</title>
		<link>http://lunarfrog.com/blog/2012/01/23/simplicity-of-async-and-await/comment-page-1/#comment-82</link>
		<dc:creator>Cristoph</dc:creator>
		<pubDate>Mon, 23 Jan 2012 19:05:52 +0000</pubDate>
		<guid isPermaLink="false">http://lunarfrog.com/blog/?p=182#comment-82</guid>
		<description>@Andrei, I still don&#039;t get what you mean with the fix for the second example. So you have an event handler method where you need to do set some arguments after you &#039;await&#039; something. So how do you set arguments?? . What you are saying  is not not use async method so not use await, so in fact it means you CANNOT SetBitmap(...) you have to move the logic from inside this method?</description>
		<content:encoded><![CDATA[<p>@Andrei, I still don&#8217;t get what you mean with the fix for the second example. So you have an event handler method where you need to do set some arguments after you &#8216;await&#8217; something. So how do you set arguments?? . What you are saying  is not not use async method so not use await, so in fact it means you CANNOT SetBitmap(&#8230;) you have to move the logic from inside this method?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deceptive simplicity of async and await by Andrei Marukovich</title>
		<link>http://lunarfrog.com/blog/2012/01/23/simplicity-of-async-and-await/comment-page-1/#comment-81</link>
		<dc:creator>Andrei Marukovich</dc:creator>
		<pubDate>Mon, 23 Jan 2012 18:18:12 +0000</pubDate>
		<guid isPermaLink="false">http://lunarfrog.com/blog/?p=182#comment-81</guid>
		<description>Dan, thanks for the catch.</description>
		<content:encoded><![CDATA[<p>Dan, thanks for the catch.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deceptive simplicity of async and await by Andrei Marukovich</title>
		<link>http://lunarfrog.com/blog/2012/01/23/simplicity-of-async-and-await/comment-page-1/#comment-80</link>
		<dc:creator>Andrei Marukovich</dc:creator>
		<pubDate>Mon, 23 Jan 2012 18:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://lunarfrog.com/blog/?p=182#comment-80</guid>
		<description>Thanks Jeremy!

The idea is to convert DataRequestedHandler into a fully sync method. That means OpenAsync should not only be moved into a new method, but this new method should be also called from some other place, not from DataRequestedHandler method.</description>
		<content:encoded><![CDATA[<p>Thanks Jeremy!</p>
<p>The idea is to convert DataRequestedHandler into a fully sync method. That means OpenAsync should not only be moved into a new method, but this new method should be also called from some other place, not from DataRequestedHandler method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deceptive simplicity of async and await by Dan</title>
		<link>http://lunarfrog.com/blog/2012/01/23/simplicity-of-async-and-await/comment-page-1/#comment-79</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 23 Jan 2012 17:56:17 +0000</pubDate>
		<guid isPermaLink="false">http://lunarfrog.com/blog/?p=182#comment-79</guid>
		<description>A minor nit: should the method signature be WriteFileAsync() instead of WriteDataAsync()?</description>
		<content:encoded><![CDATA[<p>A minor nit: should the method signature be WriteFileAsync() instead of WriteDataAsync()?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Deceptive simplicity of async and await by Jeremy</title>
		<link>http://lunarfrog.com/blog/2012/01/23/simplicity-of-async-and-await/comment-page-1/#comment-78</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Mon, 23 Jan 2012 17:06:53 +0000</pubDate>
		<guid isPermaLink="false">http://lunarfrog.com/blog/?p=182#comment-78</guid>
		<description>Nice post. About your second example, I&#039;m not sure to understand the fix. You can move the OpenAsync call to another method, but this method will still be async right ? How to return the data to the handler synchronously then ?

Regards</description>
		<content:encoded><![CDATA[<p>Nice post. About your second example, I&#8217;m not sure to understand the fix. You can move the OpenAsync call to another method, but this method will still be async right ? How to return the data to the handler synchronously then ?</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on On deploying ASP.NET MVC site as a desktop application by Andrei Marukovich</title>
		<link>http://lunarfrog.com/blog/2011/12/09/aspnetsite-as-desktop-app/comment-page-1/#comment-76</link>
		<dc:creator>Andrei Marukovich</dc:creator>
		<pubDate>Wed, 18 Jan 2012 04:07:35 +0000</pubDate>
		<guid isPermaLink="false">http://lunarfrog.com/blog/?p=147#comment-76</guid>
		<description>Will you be able to host ASP.NET MVC site in this way?</description>
		<content:encoded><![CDATA[<p>Will you be able to host ASP.NET MVC site in this way?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on On deploying ASP.NET MVC site as a desktop application by Mafuba</title>
		<link>http://lunarfrog.com/blog/2011/12/09/aspnetsite-as-desktop-app/comment-page-1/#comment-75</link>
		<dc:creator>Mafuba</dc:creator>
		<pubDate>Tue, 17 Jan 2012 23:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://lunarfrog.com/blog/?p=147#comment-75</guid>
		<description>What about an HttpListener solution? No install required, no third party stuff, etc.</description>
		<content:encoded><![CDATA[<p>What about an HttpListener solution? No install required, no third party stuff, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Exploring WinRT: Windows.Storage namespace overview by Andrei Marukovich</title>
		<link>http://lunarfrog.com/blog/2011/10/03/winrt-storage-overview/comment-page-1/#comment-74</link>
		<dc:creator>Andrei Marukovich</dc:creator>
		<pubDate>Mon, 16 Jan 2012 13:01:24 +0000</pubDate>
		<guid isPermaLink="false">http://lunarfrog.com/blog/?p=66#comment-74</guid>
		<description>You are not able to do it - WinRT does not provide any APIs for this.</description>
		<content:encoded><![CDATA[<p>You are not able to do it &#8211; WinRT does not provide any APIs for this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

