this gives us more control over all Resolvers and streamlines them. Created IBootManager, CoreBootManager and WebBootManager to handle the application initialization including the creation of Resolvers. This means that if people are using the dlls outside of the web app, they can run the boot strappers to initialize everything.
31 lines
888 B
C#
31 lines
888 B
C#
using System;
|
|
|
|
namespace Umbraco.Core
|
|
{
|
|
/// <summary>
|
|
/// A bootstrapper interface for the Umbraco application
|
|
/// </summary>
|
|
internal interface IBootManager
|
|
{
|
|
/// <summary>
|
|
/// Fires first in the application startup process before any customizations can occur
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
IBootManager Initialize();
|
|
|
|
/// <summary>
|
|
/// Fires after initialization and calls the callback to allow for customizations to occur
|
|
/// </summary>
|
|
/// <param name="afterStartup"></param>
|
|
/// <returns></returns>
|
|
IBootManager Startup(Action<ApplicationContext> afterStartup);
|
|
|
|
/// <summary>
|
|
/// Fires after startup and calls the callback once customizations are locked
|
|
/// </summary>
|
|
/// <param name="afterComplete"></param>
|
|
/// <returns></returns>
|
|
IBootManager Complete(Action<ApplicationContext> afterComplete);
|
|
|
|
}
|
|
} |