Class ShellInitialization

Shell Initialization module

Inheritance
System.Object
ShellInitialization
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.Shell
Assembly: EPiServer.Shell.dll
Version: 8.11.0
Syntax
[ModuleDependency(typeof(FrameworkInitialization))]
[InitializableModule]
public class ShellInitialization : IConfigurableModule, IInitializableHttpModule, IInitializableModule, IDisposable

Constructors

ShellInitialization()

Declaration
public ShellInitialization()

Methods

ConfigureContainer(ServiceConfigurationContext)

Configures EPiServer Shell on the IoC container

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

The context which is configured.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()

Dispose(Boolean)

Releases unmanaged and - optionally - managed resources

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Initialize(InitializationEngine)

Initializes this instance.

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

The context.

InitializeHttpEvents(HttpApplication)

Initialize any events on instances created by ASP.NET

Declaration
public void InitializeHttpEvents(HttpApplication application)
Parameters
Type Name Description
System.Web.HttpApplication application

The instance to initialize

Remarks

This method may be called either after or before the Initialize-method so make sure you do not have any dependencies between these methods. The beaviour that is guaranteed is that your event handlers will not be called before the Initialize-method. If EPiServer is being initialized outside ASP.NET this method will never get called.

When the ASP.NET runtime initializes it will create many instances of the class so make sure you only add logic to initialize events in this method, and not any one-time configuration which should be placed in the Initialize-method.

Since a can be disposed at any time make sure you never store references to this class since that could create a memory leak.

Uninitialize(InitializationEngine)

Resets the module into an uninitialized state.

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

The context.

Implements

System.IDisposable