<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Zack Owens - All Comments</title><link>http://weblogs.asp.net/zowens/default.aspx</link><description>Showing how COOL .NET is!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Debug Build: 20510.895)</generator><item><title>Twitter Trackbacks for                 Fluent NHibernate with System.ComponentModel.DataAnnotations - Zack Owens         [asp.net]        on Topsy.com</title><link>http://weblogs.asp.net/zowens/archive/2009/10/23/fluent-nhibernate-with-system-componentmodel-dataannotations.aspx#7237474</link><pubDate>Fri, 23 Oct 2009 22:53:43 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7237474</guid><dc:creator>Twitter Trackbacks for                 Fluent NHibernate with System.ComponentModel.DataAnnotations - Zack Owens         [asp.net]        on Topsy.com</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Twitter Trackbacks for &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fluent NHibernate with System.ComponentModel.DataAnnotations - Zack Owens &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [asp.net] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;on Topsy.com&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7237474" width="1" height="1"&gt;</description></item><item><title> Fluent NHibernate with System.ComponentModel.DataAnnotations </title><link>http://weblogs.asp.net/zowens/archive/2009/10/23/fluent-nhibernate-with-system-componentmodel-dataannotations.aspx#7237413</link><pubDate>Fri, 23 Oct 2009 20:50:15 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7237413</guid><dc:creator>DotNetKicks.com</dc:creator><description>&lt;p&gt;You've been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7237413" width="1" height="1"&gt;</description></item><item><title>Twitter Trackbacks for                 Maybe Monad??? my C# version - Zack Owens         [asp.net]        on Topsy.com</title><link>http://weblogs.asp.net/zowens/archive/2009/09/04/maybe-monad-my-c-version.aspx#7193157</link><pubDate>Sat, 05 Sep 2009 14:44:44 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7193157</guid><dc:creator>Twitter Trackbacks for                 Maybe Monad??? my C# version - Zack Owens         [asp.net]        on Topsy.com</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Twitter Trackbacks for &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Maybe Monad??? my C# version - Zack Owens &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [asp.net] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;on Topsy.com&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7193157" width="1" height="1"&gt;</description></item><item><title>re: Cache Abstraction</title><link>http://weblogs.asp.net/zowens/archive/2008/08/04/cache-abstraction.aspx#7155784</link><pubDate>Tue, 28 Jul 2009 10:00:15 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7155784</guid><dc:creator>Peter Mounce</dc:creator><description>&lt;p&gt;How does one use this? &amp;nbsp;I&amp;#39;ve been looking for CacheProvider in the same way that it&amp;#39;s possible to write a custom SessionStateProvider, but failing to find anything that suggests ASP.NET will let me swap out the basic cache for something else.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7155784" width="1" height="1"&gt;</description></item><item><title>re: ClubStarterKit - where do we go?</title><link>http://weblogs.asp.net/zowens/archive/2008/07/29/clubstarterkit-where-do-we-go.aspx#6807812</link><pubDate>Fri, 26 Dec 2008 18:28:27 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6807812</guid><dc:creator>Pablogrind</dc:creator><description>&lt;p&gt;Thanks Zack for CSK, any departure date?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6807812" width="1" height="1"&gt;</description></item><item><title>re: Easier way to manage your ASP.NET Cache</title><link>http://weblogs.asp.net/zowens/archive/2007/10/20/easier-way-to-manage-your-asp-net-cache.aspx#6756171</link><pubDate>Thu, 27 Nov 2008 02:12:19 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6756171</guid><dc:creator>Zack Owens</dc:creator><description>&lt;p&gt;@Eric&lt;/p&gt;
&lt;p&gt;Just sayin that its not necessarily wrong to return null. Guess its a choice rather a black and white situation. &lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6756171" width="1" height="1"&gt;</description></item><item><title>re: Easier way to manage your ASP.NET Cache</title><link>http://weblogs.asp.net/zowens/archive/2007/10/20/easier-way-to-manage-your-asp-net-cache.aspx#6756129</link><pubDate>Thu, 27 Nov 2008 01:33:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6756129</guid><dc:creator>Eric</dc:creator><description>&lt;p&gt;Well, you can feel free to disagree, but I had to do something because the exception was crashing my app :) &amp;nbsp;For me this works, as I can test for the returned value safely now...&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6756129" width="1" height="1"&gt;</description></item><item><title>re: Easier way to manage your ASP.NET Cache</title><link>http://weblogs.asp.net/zowens/archive/2007/10/20/easier-way-to-manage-your-asp-net-cache.aspx#6755705</link><pubDate>Wed, 26 Nov 2008 21:25:30 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6755705</guid><dc:creator>zowens</dc:creator><description>&lt;p&gt;@Eric&lt;/p&gt;
&lt;p&gt;Yea... i was converting from VB to C# and didn't catch that. I'm not that much of a noob anymore :)&lt;/p&gt;
&lt;p&gt;I disagree with you on the NullReferenceException. If the value is null in the cache, why return something? The manager class is just an API that delegates the functionality of the HttpCache.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6755705" width="1" height="1"&gt;</description></item><item><title>re: Easier way to manage your ASP.NET Cache</title><link>http://weblogs.asp.net/zowens/archive/2007/10/20/easier-way-to-manage-your-asp-net-cache.aspx#6755670</link><pubDate>Wed, 26 Nov 2008 20:47:08 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6755670</guid><dc:creator>Eric</dc:creator><description>&lt;p&gt;Thanks for the awesome code sample!&lt;/p&gt;
&lt;p&gt;I found one minor thing wrong with your C# example - you have to use brackets and not parens for accessing the cache like &amp;quot;HttpContext.Current.Cache[this.CacheKey]&amp;quot; instead of &amp;quot;HttpContext.Current.Cache(this.CacheKey)&amp;quot;.&lt;/p&gt;
&lt;p&gt;Also, I was getting some NullReferenceExceptions in that method, so I modified it like so and it works nicely:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; public T Grab()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;T temp;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;try&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; temp = (T)HttpContext.Current.Cache[this.CacheKey];&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (NullReferenceException)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; temp = default(T);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return temp;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; }&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6755670" width="1" height="1"&gt;</description></item><item><title>Architecting .NET Web Applications for Scale </title><link>http://weblogs.asp.net/zowens/archive/2008/02/15/improve-asp-net-performance-cssmin.aspx#6750764</link><pubDate>Sun, 23 Nov 2008 18:20:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6750764</guid><dc:creator>Jaipur .Net User Group</dc:creator><description>&lt;p&gt;Architecting .NET Web Applications for Scale&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6750764" width="1" height="1"&gt;</description></item></channel></rss>