I have a lightweight class that I use to track who the user is in an ASP.NET MVC web request. It retrieves the dictionary from the application cache and reads and changes some values, and at the end of each method accessed by the cached dictionary, inserts the dictionary back into the cache.
I would just like to change the dictionary and insert it back into the cache at the end of the web request by doing IDisposable. Will ASP.NET call Dispose on every object that was created during the request, or do I need to handle this manually in the request event of the target application.
source
share