Class WebBootManager
A bootstrapper for the Umbraco application which initializes all objects including the Web portion of the application
Namespace:System.Dynamic.ExpandoObject
Assembly:umbraco.dll
Syntax
public class WebBootManager : CoreBootManager, IBootManager
Constructors
WebBootManager(UmbracoApplicationBase)
Declaration
public WebBootManager(UmbracoApplicationBase umbracoApplication)
Parameters
Type | Name | Description |
---|---|---|
UmbracoApplicationBase | umbracoApplication |
Methods
Complete(Action<ApplicationContext>)
Ensure that the OnApplicationStarted methods of the IApplicationEvents are called
Declaration
public override IBootManager Complete(Action<ApplicationContext> afterComplete)
Parameters
Type | Name | Description |
---|---|---|
System.Action<ApplicationContext> | afterComplete |
Returns
Type | Description |
---|---|
IBootManager |
CreateApplicationCache()
Creates the application cache based on the HttpRuntime cache
Declaration
protected override CacheHelper CreateApplicationCache()
Returns
Type | Description |
---|---|
CacheHelper |
CreateRoutes()
Creates the routes
Declaration
protected void CreateRoutes()
CreateServiceContext(DatabaseContext, IScopeProvider)
Creates and returns the service context for the app
Declaration
protected override ServiceContext CreateServiceContext(DatabaseContext dbContext, IScopeProvider scopeProvider)
Parameters
Type | Name | Description |
---|---|---|
DatabaseContext | dbContext | |
IScopeProvider | scopeProvider |
Returns
Type | Description |
---|---|
ServiceContext |
FreezeResolution()
Override this method in order to ensure that the UmbracoContext is also created, this can only be created after resolution is frozen!
Declaration
protected override void FreezeResolution()
GetIndexesForColdBoot()
The method used to create indexes on a cold boot
Declaration
public static IEnumerable<BaseIndexProvider> GetIndexesForColdBoot()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Examine.Providers.BaseIndexProvider> |
Remarks
A cold boot is when the server determines it will not (or cannot) process instructions in the cache table and will rebuild it's own caches itself. TODO: Does this method need to exist? Is it used publicly elsewhere (i.e. outside of core?)
Initialize()
Initialize objects before anything during the boot cycle happens
Declaration
public override IBootManager Initialize()
Returns
Type | Description |
---|---|
IBootManager |
InitializeProfilerResolver()
Ensure the current profiler is the web profiler
Declaration
protected override void InitializeProfilerResolver()
InitializeResolvers()
Initializes all web based and core resolves
Declaration
protected override void InitializeResolvers()