Interface that you can implement to be part of the EPiServer Framework initialization chain.
Assembly: EPiServer.Framework.dllVersion: 11.20.7
public interface IInitializableModule
You should set the attribute [InitializableModule] on the class implementing this interface, or if you want to control dependencies (making sure that other modules are initialized before your module gets called) use the attribute [ModuleDependency(typeof(ClassThatIDependOn), ...)].
Initializes this instance.
void Initialize(InitializationEngine context)
Gets called as part of the EPiServer Framework initialization sequence. Note that it will be called only once per AppDomain, unless the method throws an exception. If an exception is thrown, the initialization method will be called repeadetly for each request reaching the site until the method succeeds.
Resets the module into an uninitialized state.
void Uninitialize(InitializationEngine context)
This method is usually not called when running under a web application since the web app may be shut down very abruptly, but your module should still implement it properly since it will make integration and unit testing much simpler.