AI OnAI Off
In Episerver 10, everything is IContent
.
https://world.episerver.com/documentation/developer-guides/CMS/learning-path/media-support/
You can create an initialization module that listens to content events:
[InitializableModule]
[ModuleDependency(typeof(InitializationModule))]
public class MyModule : IInitializableModule
{
public void Initialize(InitializationEngine context)
{
var contentEvents = context.Locate.Advanced.GetInstance<IContentEvents>();
contentEvents.CheckedInContent += ContentEvents_CheckedInContent;
}
private void ContentEvents_CheckedInContent(object sender, ContentEventArgs e)
{
// ...
}
public void Uninitialize(InitializationEngine context)
{
// ...
}
}
Is there anyone expert in EPIServer.
I need help to migrate code from Version 6 to 10.
I have this code in my file and it gives error after i migrated to Version 10.