<?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 Blog of Colin Mackay</title>
	<atom:link href="http://colinmackay.co.uk/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://colinmackay.co.uk/blog</link>
	<description>Can Open... Worms??? Everywhere!!!</description>
	<lastBuildDate>Wed, 15 Feb 2012 22:49:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>Comment on PHP for ASP.NET Developers (part 2) by PHP for ASP.NET developers (part 3) &#124; Blog of Colin Mackay</title>
		<link>http://colinmackay.co.uk/blog/2012/02/01/php-for-asp-net-developers-part-2/comment-page-1/#comment-1249</link>
		<dc:creator>PHP for ASP.NET developers (part 3) &#124; Blog of Colin Mackay</dc:creator>
		<pubDate>Wed, 15 Feb 2012 22:49:24 +0000</pubDate>
		<guid isPermaLink="false">http://colinmackay.co.uk/blog/?p=12580#comment-1249</guid>
		<description>[...] &#8592; PHP for ASP.NET Developers (part 2) [...]</description>
		<content:encoded><![CDATA[<p>[...] &larr; PHP for ASP.NET Developers (part 2) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Parallel Tasks and the HttpContext by Colin Mackay</title>
		<link>http://colinmackay.co.uk/blog/2011/05/24/parallel-tasks-and-the-httpcontext/comment-page-1/#comment-1248</link>
		<dc:creator>Colin Mackay</dc:creator>
		<pubDate>Wed, 15 Feb 2012 14:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://colinmackay.co.uk/blog/2011/05/24/parallel-tasks-and-the-httpcontext/#comment-1248</guid>
		<description>HttpContext.Current is set at the thread level. When accessing the HttpContext.Current from classes other than the &quot;code behind&quot; you are still on the same thread that the request is using. As soon as you create new threads then HttpContext.Current returns the context that is current to the thread you are on. Since the parallel task is not the same thread there is no current HttpContext.

It isn&#039;t so much that you &quot;lose&quot; the HttpContext.Current on a parallel task, it is more that you never had one in the first place.</description>
		<content:encoded><![CDATA[<p>HttpContext.Current is set at the thread level. When accessing the HttpContext.Current from classes other than the &#8220;code behind&#8221; you are still on the same thread that the request is using. As soon as you create new threads then HttpContext.Current returns the context that is current to the thread you are on. Since the parallel task is not the same thread there is no current HttpContext.</p>
<p>It isn&#8217;t so much that you &#8220;lose&#8221; the HttpContext.Current on a parallel task, it is more that you never had one in the first place.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Parallel Tasks and the HttpContext by EZ coding</title>
		<link>http://colinmackay.co.uk/blog/2011/05/24/parallel-tasks-and-the-httpcontext/comment-page-1/#comment-1247</link>
		<dc:creator>EZ coding</dc:creator>
		<pubDate>Wed, 15 Feb 2012 05:07:40 +0000</pubDate>
		<guid isPermaLink="false">http://colinmackay.co.uk/blog/2011/05/24/parallel-tasks-and-the-httpcontext/#comment-1247</guid>
		<description>Actually I am using HttpContext.Current to read Session /Cache  /Request collections from classes other than code behind. Never had any  concurrency  problems.
Hit the first problem today while implementing parallel task that  call function that internally access  HttpContext.Current. Apparently it is not shared between ASP and parallel thread</description>
		<content:encoded><![CDATA[<p>Actually I am using HttpContext.Current to read Session /Cache  /Request collections from classes other than code behind. Never had any  concurrency  problems.<br />
Hit the first problem today while implementing parallel task that  call function that internally access  HttpContext.Current. Apparently it is not shared between ASP and parallel thread</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Parallel Tasks and the HttpContext by Colin Mackay</title>
		<link>http://colinmackay.co.uk/blog/2011/05/24/parallel-tasks-and-the-httpcontext/comment-page-1/#comment-1246</link>
		<dc:creator>Colin Mackay</dc:creator>
		<pubDate>Tue, 14 Feb 2012 19:31:16 +0000</pubDate>
		<guid isPermaLink="false">http://colinmackay.co.uk/blog/2011/05/24/parallel-tasks-and-the-httpcontext/#comment-1246</guid>
		<description>I&#039;m not sure what this post has to do with caching... But there are many mechanisms built in to ASP.NET for caching and in to the .NET Framework in general. It really depends on what you want to achieve.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure what this post has to do with caching&#8230; But there are many mechanisms built in to ASP.NET for caching and in to the .NET Framework in general. It really depends on what you want to achieve.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Parallel Tasks and the HttpContext by Me My Self</title>
		<link>http://colinmackay.co.uk/blog/2011/05/24/parallel-tasks-and-the-httpcontext/comment-page-1/#comment-1245</link>
		<dc:creator>Me My Self</dc:creator>
		<pubDate>Tue, 14 Feb 2012 15:02:41 +0000</pubDate>
		<guid isPermaLink="false">http://colinmackay.co.uk/blog/2011/05/24/parallel-tasks-and-the-httpcontext/#comment-1245</guid>
		<description>So, what do you suggest as caching method inside an asp.net application ?</description>
		<content:encoded><![CDATA[<p>So, what do you suggest as caching method inside an asp.net application ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on PHP for ASP.NET Developers (part 1) by PHP for ASP.NET Developers (part 2) &#124; Blog of Colin Mackay</title>
		<link>http://colinmackay.co.uk/blog/2012/01/31/php-for-asp-net-developers-part-1/comment-page-1/#comment-1231</link>
		<dc:creator>PHP for ASP.NET Developers (part 2) &#124; Blog of Colin Mackay</dc:creator>
		<pubDate>Wed, 01 Feb 2012 00:19:16 +0000</pubDate>
		<guid isPermaLink="false">http://colinmackay.co.uk/blog/?p=12578#comment-1231</guid>
		<description>[...] = &#039;.$stuff[1]; This entry was posted in Software Development and tagged PHP. Bookmark the permalink.&#8592; PHP for ASP.NET Developers (part 1)Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Name [...]</description>
		<content:encoded><![CDATA[<p>[...] = &#039;.$stuff[1]; This entry was posted in Software Development and tagged PHP. Bookmark the permalink.&larr; PHP for ASP.NET Developers (part 1)Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Name [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mixins in C# 3.0 by Saeed Neamati</title>
		<link>http://colinmackay.co.uk/blog/2008/02/24/mixins-in-c-30/comment-page-1/#comment-1229</link>
		<dc:creator>Saeed Neamati</dc:creator>
		<pubDate>Sat, 28 Jan 2012 14:18:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.colinmackay.net/archive/2008/02/24/1895.aspx#comment-1229</guid>
		<description>Man, I read this article after almost 3 years, can you believe that? But the concept of mixin has never been explained so easy and understandable, as what has been presented here. I really thank you, mostly because of the great example of mammals and avians.</description>
		<content:encoded><![CDATA[<p>Man, I read this article after almost 3 years, can you believe that? But the concept of mixin has never been explained so easy and understandable, as what has been presented here. I really thank you, mostly because of the great example of mammals and avians.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Running Queries on Excel Spreadsheets using SQL Server 2008 by Dhananjay Kumar Gupta</title>
		<link>http://colinmackay.co.uk/blog/2011/08/12/running-queries-on-excel-spreadsheets-using-sql-server-2008/comment-page-1/#comment-1226</link>
		<dc:creator>Dhananjay Kumar Gupta</dc:creator>
		<pubDate>Mon, 23 Jan 2012 10:23:58 +0000</pubDate>
		<guid isPermaLink="false">http://colinmackay.co.uk/blog/2011/08/12/running-queries-on-excel-spreadsheets-using-sql-server-2008/#comment-1226</guid>
		<description>this is right guide.</description>
		<content:encoded><![CDATA[<p>this is right guide.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Passing Values Between Forms in .NET by Shavinder</title>
		<link>http://colinmackay.co.uk/blog/2005/04/22/passing-values-between-forms-in-net/comment-page-1/#comment-1222</link>
		<dc:creator>Shavinder</dc:creator>
		<pubDate>Tue, 17 Jan 2012 00:19:37 +0000</pubDate>
		<guid isPermaLink="false">http://colinmackay.co.uk/blog/2005/04/22/passing-values-between-forms-in-net/#comment-1222</guid>
		<description>Clear and direct. Thanks for the write-up and accompanying code.</description>
		<content:encoded><![CDATA[<p>Clear and direct. Thanks for the write-up and accompanying code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sending more than a basic email with Amazon SES by markus</title>
		<link>http://colinmackay.co.uk/blog/2011/11/10/sending-more-than-a-basic-email-with-amazon-ses/comment-page-1/#comment-1220</link>
		<dc:creator>markus</dc:creator>
		<pubDate>Thu, 12 Jan 2012 02:57:24 +0000</pubDate>
		<guid isPermaLink="false">http://colinmackay.co.uk/blog/2011/11/10/sending-more-than-a-basic-email-with-amazon-ses/#comment-1220</guid>
		<description>Just a warning- there may be threadsafety issues using this method. I tried encoding exactly the same email with two attachments (a JPG and the 500k PDF) multiple times and dumped the memory stream out to file.

Doing this in a single thread seems to work consistently, i.e. the dumped files are all the same, but when I multi-thread this, the file lengths are different! Comparing two of the different files, I can see that the base 64 encoded content is the same for the HTML body and the JPG, but different for the PDF!</description>
		<content:encoded><![CDATA[<p>Just a warning- there may be threadsafety issues using this method. I tried encoding exactly the same email with two attachments (a JPG and the 500k PDF) multiple times and dumped the memory stream out to file.</p>
<p>Doing this in a single thread seems to work consistently, i.e. the dumped files are all the same, but when I multi-thread this, the file lengths are different! Comparing two of the different files, I can see that the base 64 encoded content is the same for the HTML body and the JPG, but different for the PDF!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

