Class CoreBootManager
A bootstrapper for the Umbraco application which initializes all objects for the Core of the application
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public class CoreBootManager : IBootManager
Constructors
CoreBootManager(UmbracoApplicationBase)
Declaration
public CoreBootManager(UmbracoApplicationBase umbracoApplication)
Parameters
Properties
ApplicationCache
Declaration
protected CacheHelper ApplicationCache { get; }
Property Value
ApplicationContext
Declaration
protected ApplicationContext ApplicationContext { get; }
Property Value
PluginManager
Declaration
protected PluginManager PluginManager { get; }
Property Value
ProfilingLogger
Declaration
protected ProfilingLogger ProfilingLogger { get; }
Property Value
ServiceProvider
Declaration
protected IServiceProvider ServiceProvider { get; }
Property Value
Type |
Description |
System.IServiceProvider |
|
UmbracoApplication
Declaration
protected UmbracoApplicationBase UmbracoApplication { get; }
Property Value
Methods
Complete(Action<ApplicationContext>)
Fires after startup and calls the callback once customizations are locked
Declaration
public virtual IBootManager Complete(Action<ApplicationContext> afterComplete)
Parameters
Returns
CreateApplicationCache()
Creates and returns the CacheHelper for the app
Declaration
protected virtual CacheHelper CreateApplicationCache()
Returns
CreateApplicationContext(DatabaseContext, ServiceContext)
Creates and returns the application context for the app
Declaration
protected virtual ApplicationContext CreateApplicationContext(DatabaseContext dbContext, ServiceContext serviceContext)
Parameters
Returns
CreateServiceContext(DatabaseContext, IScopeProvider)
Creates and returns the service context for the app
Declaration
protected virtual ServiceContext CreateServiceContext(DatabaseContext dbContext, IScopeProvider scopeProvider)
Parameters
Returns
FreezeResolution()
Freeze resolution to not allow Resolvers to be modified
Declaration
protected virtual void FreezeResolution()
Initialize()
Declaration
public virtual IBootManager Initialize()
Returns
InitializeApplicationEventsResolver()
Special method to initialize the ApplicationEventsResolver and any modifications required for it such
as adding custom types to the resolver.
Declaration
protected virtual void InitializeApplicationEventsResolver()
InitializeApplicationRootPath(String)
Special method to extend the use of Umbraco by enabling the consumer to overwrite
the absolute path to the root of an Umbraco site/solution, which is used for stuff
like Umbraco.Core.IO.IOHelper.MapPath etc.
Declaration
protected virtual void InitializeApplicationRootPath(string rootPath)
Parameters
Type |
Name |
Description |
System.String |
rootPath |
Absolute
|
InitializeLoggerResolver()
Special method to initialize the LoggerResolver
Declaration
protected virtual void InitializeLoggerResolver()
InitializeModelMappers()
This method allows for configuration of model mappers
Declaration
protected void InitializeModelMappers()
InitializeProfilerResolver()
Special method to initialize the ProfilerResolver
Declaration
protected virtual void InitializeProfilerResolver()
InitializeResolvers()
Declaration
protected virtual void InitializeResolvers()
Startup(Action<ApplicationContext>)
Declaration
public virtual IBootManager Startup(Action<ApplicationContext> afterStartup)
Parameters
Returns