Try our conversational search powered by Generative AI!

Class InitializationModule

Initialization of the EPiServer CMS runtime.

Inheritance
System.Object
InitializationModule
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[InitializableModule]
[ModuleDependency(typeof(AspNetInitialization))]
[ModuleDependency(typeof(ConfigurationInitialization))]
[ModuleDependency(typeof(CmsCoreInitialization))]
[ModuleDependency(typeof(EnterpriseAspNetInitialization))]
[ModuleDependency(typeof(MirroringTransferHandler))]
[ModuleDependency(typeof(MirroringMonitoringModule))]
[ModuleDependency(typeof(ExternalDataTracker))]
[ModuleDependency(typeof(VisitorGroupCriterionTransferDataHandler))]
[ModuleDependency(typeof(AccessDeniedHandlerInitialization))]
[ModuleDependency(typeof(BlobRouterInitialization))]
[ModuleDependency(typeof(DisplayChannelInitialization))]
[ModuleDependency(typeof(LicenseInitialization))]
[ModuleDependency(typeof(LocalizationInitialization))]
[ModuleDependency(typeof(MvcInitializationModule))]
[ModuleDependency(typeof(ProfileInitialization))]
[ModuleDependency(typeof(RouterInitializationModule))]
[ModuleDependency(typeof(SaveConfigToDatabaseInitialization))]
[ModuleDependency(typeof(TemplateInitialization))]
[ModuleDependency(typeof(UrlRewriteProviderInitialization))]
[ModuleDependency(typeof(VirtualPathProvidersInitialization))]
[ModuleDependency(typeof(VisitorGroupsInitialization))]
[ModuleDependency(typeof(RoutingInitialization))]
[ModuleDependency(typeof(ModelTypesInitialization))]
[ModuleDependency(typeof(AspNetInitialization))]
[ModuleDependency(typeof(ThumbnailInitialization))]
public class InitializationModule : IConfigurableModule, IInitializableModule

Constructors

InitializationModule()

Declaration
public InitializationModule()

Properties

HostType

Gets or sets the type of the host.

Declaration
public static HostType HostType { get; set; }
Property Value
Type Description
HostType

The type of the host.

Methods

ConfigureContainer(ServiceConfigurationContext)

Configure the IoC container before initialization.

Declaration
public void ConfigureContainer(ServiceConfigurationContext context)
Parameters
Type Name Description
ServiceConfigurationContext context

The context on which the container can be accessed.

Initialize(InitializationEngine)

Initializes this instance.

Declaration
public void Initialize(InitializationEngine context)
Parameters
Type Name Description
InitializationEngine context

The context.

Remarks

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.

Uninitialize(InitializationEngine)

Resets the module into an uninitialized state.

Declaration
public void Uninitialize(InitializationEngine context)
Parameters
Type Name Description
InitializationEngine context

The context.

Remarks

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.

Any work done by Initialize(InitializationEngine) as well as any code executing on InitComplete should be reversed.

Implements

Extension Methods