Removed 'Boot' method from WebBootManager as it was never supposed to be there in the first place.
Removed test code from 'SurfaceController'. Added comments to IApplicationEventHandler.
This commit is contained in:
@@ -8,8 +8,26 @@ namespace Umbraco.Web
|
||||
/// </summary>
|
||||
public interface IApplicationEventHandler : IApplicationStartupHandler
|
||||
{
|
||||
/// <summary>
|
||||
/// ApplicationContext is created and other static objects that require initialization have been setup
|
||||
/// </summary>
|
||||
/// <param name="httpApplication"></param>
|
||||
/// <param name="applicationContext"></param>
|
||||
void OnApplicationInitialized(UmbracoApplication httpApplication, ApplicationContext applicationContext);
|
||||
|
||||
/// <summary>
|
||||
/// All resolvers have been initialized but resolution is not frozen so they can be modified in this method
|
||||
/// </summary>
|
||||
/// <param name="httpApplication"></param>
|
||||
/// <param name="applicationContext"></param>
|
||||
void OnApplicationStarting(UmbracoApplication httpApplication, ApplicationContext applicationContext);
|
||||
|
||||
/// <summary>
|
||||
/// Bootup is completed, this allows you to perform any other bootup logic required for the application.
|
||||
/// Resolution is frozen so now they can be used to resolve instances.
|
||||
/// </summary>
|
||||
/// <param name="httpApplication"></param>
|
||||
/// <param name="applicationContext"></param>
|
||||
void OnApplicationStarted(UmbracoApplication httpApplication, ApplicationContext applicationContext);
|
||||
}
|
||||
}
|
||||
@@ -6,47 +6,6 @@ using Umbraco.Core;
|
||||
|
||||
namespace Umbraco.Web.Mvc
|
||||
{
|
||||
//[PluginController("MyTestSurfaceController")]
|
||||
//public class TestSurfaceController : SurfaceController
|
||||
//{
|
||||
// public ActionResult Index()
|
||||
// {
|
||||
// return View();
|
||||
// //return Content("<html><body>hello</body></html>");
|
||||
// }
|
||||
|
||||
// public ActionResult PostVals(string name)
|
||||
// {
|
||||
// ModelState.AddModelError("name", "bad name!");
|
||||
// return CurrentUmbracoPage();
|
||||
// }
|
||||
|
||||
// [ChildActionOnly]
|
||||
// public ActionResult DoThis(string asdf)
|
||||
// {
|
||||
// return PartialView("DoThis", asdf + " DONE!");
|
||||
// }
|
||||
//}
|
||||
|
||||
//public class LocalSurfaceController : SurfaceController
|
||||
//{
|
||||
// public ActionResult Index()
|
||||
// {
|
||||
// return View();
|
||||
// }
|
||||
|
||||
// public ActionResult PostVals([Bind(Prefix = "blah")]string name)
|
||||
// {
|
||||
// ModelState.AddModelError("name", "you suck!");
|
||||
// return this.RedirectToCurrentUmbracoPage();
|
||||
// }
|
||||
|
||||
// [ChildActionOnly]
|
||||
// public ActionResult DoThis(string asdf)
|
||||
// {
|
||||
// return PartialView("DoThis", asdf + " DONE Again!");
|
||||
// }
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// The base controller that all Presentation Add-in controllers should inherit from
|
||||
|
||||
@@ -45,12 +45,7 @@ namespace Umbraco.Web
|
||||
_umbracoApplication = umbracoApplication;
|
||||
if (umbracoApplication == null) throw new ArgumentNullException("umbracoApplication");
|
||||
}
|
||||
|
||||
public void Boot()
|
||||
{
|
||||
InitializeResolvers();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Initialize objects before anything during the boot cycle happens
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user