Hanselminutes on 9 - ASP.NET 4 and the new ObjectCache with Stefan

Sign in to queue

Description

It's time for a pile of "Hanselminutes on 9" Episodes, Dear Reader! Recently, I spent a day wandering around building 42 trying to dig up the scoop on Visual Studio 2010 and ASP.NET 4. In this episode, I'm verbally abused by Stefan Schackow and during his tirades he schools me on the new System.Runtime.Caching namespace and ObjectCache. This newly factored namespace lets you use caching features outside of System.Web, as well as derive new kinds of caches.

Embed

Download

Download this episode

The Discussion

  • User profile image
    Ardalis

    "This newly factored namespace lets you use caching features outside of System.Web, as well as derive new kinds of caches."

     

    Nice, although you could already use the System.Web cache outside of web applications (e.g. Console, WinForms, WPF), which many devs don't realize.

  • User profile image
    Shreedhar

    Well exactly, how do we realize that System.Web cache can be used outside of web app? I think it is in these areas that Microsoft should provide more help and samples along with all possible use cases.

  • User profile image
    Shreedhar

    In the video Stefan says HostFileChangeNotifier can use windows API for file monitoring if it is running from win/console app and use the asp.net specific monitor if it is running inside a web app.  If I am a authoring a class librabry how do I detect if I am running inside a web host or windows host and do different things?

    Can you share any sample code?

     

    Thanks

    Shreedhar

Add Your 2 Cents