c# - Override some Methodes of VirtualPathProvider -
i want use default implemented virtualpathprovider of asp.net mvc web application.
in other words want inherit own virtualpathprovider default asp.net virtualpathprovider , override getcachekey method.
what should do?
anyone can help?
cheers
create custom virtual path provider class, overriding method want, , call hostingenvironment.registervirtualpathprovider
within application_start
(defined in global.asax.cs
) install it:
protected void application_start() { hostingenvirontment.registervirtualpathprovider(new myvpprovider()); }