<?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: Guaranteeing Disposal Of UserControls In ASP.NET</title> <atom:link href="http://davybrion.com/blog/2009/04/guaranteeing-disposal-of-usercontrols-in-aspnet/feed/" rel="self" type="application/rss+xml" /><link>http://davybrion.com/blog/2009/04/guaranteeing-disposal-of-usercontrols-in-aspnet/</link> <description>inquisitive: adjective. given to inquiry, research, or asking questions; eager for knowledge; intellectually curious</description> <lastBuildDate>Sun, 20 May 2012 21:55:00 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: Davy Brion</title><link>http://davybrion.com/blog/2009/04/guaranteeing-disposal-of-usercontrols-in-aspnet/comment-page-1/#comment-33168</link> <dc:creator>Davy Brion</dc:creator> <pubDate>Mon, 22 Mar 2010 12:03:26 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=1280#comment-33168</guid> <description>@Dinothat would work as well, though you&#039;re required to add each instance you want to see disposed to the HttpContext.Current.Items dictionary with a unique key to prevent overwriting other instancesin a way it would indeed be simpler, yet it&#039;s also more error prone i think</description> <content:encoded><![CDATA[<p>@Dino</p><p>that would work as well, though you&#8217;re required to add each instance you want to see disposed to the HttpContext.Current.Items dictionary with a unique key to prevent overwriting other instances</p><p>in a way it would indeed be simpler, yet it&#8217;s also more error prone i think</p> ]]></content:encoded> </item> <item><title>By: Dino Chiesa</title><link>http://davybrion.com/blog/2009/04/guaranteeing-disposal-of-usercontrols-in-aspnet/comment-page-1/#comment-33152</link> <dc:creator>Dino Chiesa</dc:creator> <pubDate>Mon, 22 Mar 2010 11:31:57 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=1280#comment-33152</guid> <description>Davy, you sure you need all that?  why not just register an Application_EndRequest() method in global.asax.cs, iterate through the HttpContext.Current.Items dictionary, and call Dispose as necessary (if the object is IDisposable). If you make the assumption that anything IDisposable needs to be Disposed when the request context goes out of scope, then the solution is much simpler than what you provided.
You could also constrain the situation byb assuming &quot;anything stored in request context that&#039;s a DataContext should be Disposed.&quot;Also, see this post from a while back from Keith Craig.
http://blogs.vertigo.com/personal/keithc/Blog/archive/2007/06/28/linq-to-sql-and-the-quote-request-scoped-datacontext-quote-pattern.aspx</description> <content:encoded><![CDATA[<p>Davy, you sure you need all that?  why not just register an Application_EndRequest() method in global.asax.cs, iterate through the HttpContext.Current.Items dictionary, and call Dispose as necessary (if the object is IDisposable). If you make the assumption that anything IDisposable needs to be Disposed when the request context goes out of scope, then the solution is much simpler than what you provided.<br
/> You could also constrain the situation byb assuming &#8220;anything stored in request context that&#8217;s a DataContext should be Disposed.&#8221;</p><p>Also, see this post from a while back from Keith Craig.<br
/> <a
href="http://blogs.vertigo.com/personal/keithc/Blog/archive/2007/06/28/linq-to-sql-and-the-quote-request-scoped-datacontext-quote-pattern.aspx" rel="nofollow">http://blogs.vertigo.com/personal/keithc/Blog/archive/2007/06/28/linq-to-sql-and-the-quote-request-scoped-datacontext-quote-pattern.aspx</a></p> ]]></content:encoded> </item> <item><title>By: Getting Your ASP.NET UserControl Disposed &#8230; At All Times &#124; Kristof Rennen's Blog</title><link>http://davybrion.com/blog/2009/04/guaranteeing-disposal-of-usercontrols-in-aspnet/comment-page-1/#comment-11833</link> <dc:creator>Getting Your ASP.NET UserControl Disposed &#8230; At All Times &#124; Kristof Rennen's Blog</dc:creator> <pubDate>Thu, 09 Apr 2009 17:15:18 +0000</pubDate> <guid
isPermaLink="false">http://davybrion.com/blog/?p=1280#comment-11833</guid> <description>[...] Davy explains how he solved our problems in his blog post about the topic: Guaranteeing Disposal Of UserControls In ASP.NET [...]</description> <content:encoded><![CDATA[<p>[...] Davy explains how he solved our problems in his blog post about the topic: Guaranteeing Disposal Of UserControls In ASP.NET [...]</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/7 queries in 0.003 seconds using disk: basic
Object Caching 351/352 objects using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: d18sni7re4ly7f.cloudfront.net

Served from: davybrion.com @ 2012-05-22 11:40:53 -->
