I want to use the default implemented VirtualPathProvider of ASP.Net MVC Web Application.
In other words I want to inherit my own VirtualPathProvider from default Asp.net VirtualPathProvider and just override the GetCacheKey Method.
What should I do?
Anyone can help?
Cheers
Create your custom virtual path provider class, overriding the method you want, and then call
HostingEnvironment.RegisterVirtualPathProvider
from withinApplication_Start
(defined inglobal.asax.cs
) to install it: