Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Listing page provider instances


I have a custom page provider up and running but need to be able to access the instance of my provider from a scheduled job and call a method on it...

... the SDK documentation is pretty sketchy here - is it something to do with PageProviderMap class?

Aug 17, 2009 19:38

Hah! Sorted - it is the EPiServer.Core.PageProviderMap class that does the job:

EPiServerSection config = ConfigurationManager.GetSection("episerver") as EPiServerSection;
PageProviderMap map = new PageProviderMap(config.PageProvider.Providers);
MyPageProvider providerInstance = map.GetPageProvider("MyProviderName") as MyPageProvider;

Edited, Aug 17, 2009 19:58
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.