WebCast MSDN: Introducción a Páginas Web con ASP.NET y Razor Syntax
Hope to have you with us in this event (next 20th March). Register here.
Sharing my daily work experience..
Hope to have you with us in this event (next 20th March). Register here.
Published By Javier Arguello at 12:35 AM 0 comments
This is an experiment to caché results from static classes in an ASP.NET MVC project.
Domain services (see DDD) are static classes for this project :(.
Caché usage is as following:
The MethodCache.Get uses the calling method name as caché Key (in the previous code fragment TiposMoneda), so you don’t need to specify a caché key if you don’t want to.
Here is my implementation:
Note the NoInlining method option. This is a very important flag to the CLR. We don’t want to inline the method as it would interfere with the StackTrace (thus with the evaluation of the caché key).
Published By Javier Arguello at 1:06 AM 0 comments