Hi Team,
We are doing migration for Epi CMS from 7.5 to 11 and facing issue in below code:
DataFactory.Instance.CreatingPage += MyFunction; DataFactory.Instance.PublishingPage += MyFunction;
now in v11 , these EventHandler are not part of DataFactory class and i was wondering , how can it is handled in latest version of CMS.
Look for `EPiServer.Core.IContentEvents`
While the answer from Valdis is correct, it is worth noting that you should be using IContentRepository instead of DataFactory these days. Episerver now is all about interfaces & dependency injection.
:) "all".. there are still some places in framework that needs to be taken care of ;) no offense here..
Hi Team,
We are doing migration for Epi CMS from 7.5 to 11 and facing issue in below code:
DataFactory.Instance.CreatingPage += MyFunction;
DataFactory.Instance.PublishingPage += MyFunction;
now in v11 , these EventHandler are not part of DataFactory class and i was wondering , how can it is handled in latest version of CMS.