<?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: Determine current execution context (ASP.NET or Winforms)</title>
	<atom:link href="http://www.leandrodg.com.ar/blog/2007/10/determine-current-execution-context-webforms-or-winforms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leandrodg.com.ar/blog/2007/10/determine-current-execution-context-webforms-or-winforms/</link>
	<description>Yet another developer blog</description>
	<lastBuildDate>Thu, 01 Jul 2010 09:01:13 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Determine current execution context (ASP.NET or Winforms) &#171; Technical Issues &#38; Solutions</title>
		<link>http://www.leandrodg.com.ar/blog/2007/10/determine-current-execution-context-webforms-or-winforms/comment-page-1/#comment-6</link>
		<dc:creator>Determine current execution context (ASP.NET or Winforms) &#171; Technical Issues &#38; Solutions</dc:creator>
		<pubDate>Thu, 26 Mar 2009 06:26:02 +0000</pubDate>
		<guid isPermaLink="false">http://leandrodg.wordpress.com/2007/10/05/determine-current-execution-context-webforms-or-winforms/#comment-6</guid>
		<description>[...] Got the solution from Leandro&#8217;s blog post [...]</description>
		<content:encoded><![CDATA[<p>[...] Got the solution from Leandro&#8217;s blog post [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fniitmse</title>
		<link>http://www.leandrodg.com.ar/blog/2007/10/determine-current-execution-context-webforms-or-winforms/comment-page-1/#comment-5</link>
		<dc:creator>Fniitmse</dc:creator>
		<pubDate>Sat, 13 Dec 2008 19:31:41 +0000</pubDate>
		<guid isPermaLink="false">http://leandrodg.wordpress.com/2007/10/05/determine-current-execution-context-webforms-or-winforms/#comment-5</guid>
		<description>Thanks!,</description>
		<content:encoded><![CDATA[<p>Thanks!,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jamesgoody</title>
		<link>http://www.leandrodg.com.ar/blog/2007/10/determine-current-execution-context-webforms-or-winforms/comment-page-1/#comment-4</link>
		<dc:creator>jamesgoody</dc:creator>
		<pubDate>Mon, 05 May 2008 05:08:09 +0000</pubDate>
		<guid isPermaLink="false">http://leandrodg.wordpress.com/2007/10/05/determine-current-execution-context-webforms-or-winforms/#comment-4</guid>
		<description>Hey! Thanks for the tip. I was using HttpContext.Current but found that it was null when invoking methods via reflection. Using Assembly.GetEntryAssembly() allows for this scenario. I combined the two checks to be safe:

if (Assembly.GetEntryAssembly() != null &amp;&amp; HttpContext.Current == null)

Thanks again!

Jimmy</description>
		<content:encoded><![CDATA[<p>Hey! Thanks for the tip. I was using HttpContext.Current but found that it was null when invoking methods via reflection. Using Assembly.GetEntryAssembly() allows for this scenario. I combined the two checks to be safe:</p>
<p>if (Assembly.GetEntryAssembly() != null &amp;&amp; HttpContext.Current == null)</p>
<p>Thanks again!</p>
<p>Jimmy</p>
]]></content:encoded>
	</item>
</channel>
</rss>
