Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback.
AI OnAI Off
Help shape the future of CMS PaaS release notes! Take this quick survey and share your feedback.
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;
providerInstance.DoStuff();
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?