SaaS CMS has officially launched! Learn more now.

Interface IInitializationEngine

Used internally by EPiServer to initialize a set of modules

Namespace: EPiServer.Framework.Initialization
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public interface IInitializationEngine

Properties

Assemblies

A list of assemblies that should participate in the initialization

Declaration
IEnumerable<Assembly> Assemblies { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Reflection.Assembly>
Remarks

This list will be the base for different scanning operations done within the initialization such as plug-in systems and services configured using ServiceLocation.ServiceConfigurationAttribute, it is also used if ScanAssemblies() is called to automatically populate the list of assemblies.

By default when EPiServer initializes this will be set to a list of allowed assemblies configured in EPiServer.Framework.Initialization.InitializationModule.Assemblies

HostType

The HostType of the current application

Declaration
HostType HostType { get; }
Property Value
Type Description
HostType

InitializationState

Gets or sets the state of the initialization.

Declaration
InitializationState InitializationState { get; }
Property Value
Type Description
InitializationState

The state of the initialization.

Modules

The list of modules that should be initialized

Declaration
IEnumerable<IInitializableModule> Modules { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<IInitializableModule>

Methods

Configure()

Calls all IConfigurableModule instances.

Declaration
void Configure()
Remarks

Calling this method is optional, it must be called before Initialize()

Initialize()

Initializes all initializable modules.

Declaration
void Initialize()

Uninitialize()

Un-initialize all initializable modules.

Declaration
void Uninitialize()

Events

InitComplete

InitComplete is raised when initialization is complete.

Declaration
event EventHandler InitComplete
Event Type
Type Description
System.EventHandler
Remarks

Initialization is complete when all intializable modules have executed successfully (without throwing any exception).

Extension Methods