Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

clear custom rewrite provider cache from within .net web application (SharePoint)

$
0
0

I've written a custom rewrite provider that reads a list of rewrite mappings from a SharePoint list by adapting the extensibility samples. I've taken a hybrid approach between the filemap and db provider samples. I read the list into a Dictonary like the filemap provider does.

All of that is ok but what I would like to be able to do is clear the rewrite cache when my SharePoint list is updated by way of an event receiver. If I can't get that to work, I will probably just use a Timer to do it. 

The short version of my question is:
How can I access an instance of my rewrite provider from within my .Net web application (in my case, SharePoint)? With the instance, I can hopefully clear the cache. 

I've been looking into IServiceProvider but may be going down the wrong path. Plus, I don't fully understand how that works.

Any suggestions? Either SharePoint specific, or ASP.Net in general would be appreciated.

If it would help, I could provide some of my code.

Thanks.


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>