Class DefaultSiteContentInitialization
Supports automatic setup of default site content (used by templates to bootstrap a site with content)
Inheritance
Inherited Members
Namespace: EPiServer.Enterprise
Assembly: EPiServer.Enterprise.dll
Version: 9.12.2Syntax
[ModuleDependency(typeof(InitializationModule))]
public class DefaultSiteContentInitialization : IInitializableHttpModule, IInitializableModule
Remarks
Place a file ~/App_Data/DefaultSiteContent.episerverdata on the web site to automatically import and configure a new site. Site will only be created where there are no other sites defined and there are no content under the root page beside the wastebasket.
Constructors
DefaultSiteContentInitialization()
Declaration
public DefaultSiteContentInitialization()
Fields
DefaultSiteContentPath
Declaration
public const string DefaultSiteContentPath = "~/App_Data/DefaultSiteContent.episerverdata"
Field Value
Type | Description |
---|---|
System.String |
Methods
Initialize(InitializationEngine)
Declaration
public void Initialize(InitializationEngine context)
Parameters
Type | Name | Description |
---|---|---|
InitializationEngine | context |
InitializeHttpEvents(HttpApplication)
Declaration
public void InitializeHttpEvents(HttpApplication application)
Parameters
Type | Name | Description |
---|---|---|
System.Web.HttpApplication | application |
Uninitialize(InitializationEngine)
Declaration
public void Uninitialize(InitializationEngine context)
Parameters
Type | Name | Description |
---|---|---|
InitializationEngine | context |
Events
ImportedSiteContent
Triggered when setup process has been completed
Declaration
public static event EventHandler<EventArgs> ImportedSiteContent
Event Type
Type | Description |
---|---|
System.EventHandler<System.EventArgs> |
Remarks
This event is called inside a lock, so no other HTTP requests can be processed until all event handlers listening to this event return.
ImportingSiteContent
Triggered when setup process is started
Declaration
public static event EventHandler<EventArgs> ImportingSiteContent
Event Type
Type | Description |
---|---|
System.EventHandler<System.EventArgs> |
Remarks
This event is called inside a lock, so no other HTTP requests can be processed until all event handlers listening to this event return.