Gets the installer steps working nicely and returning the next step to execute which now displays the current step details correctly and dequeues steps that are not required after the previous one has executed.

This commit is contained in:
Shannon
2014-03-05 11:34:42 +11:00
parent 8e89aa233c
commit 0227b800a0
9 changed files with 126 additions and 176 deletions

View File

@@ -13,7 +13,8 @@ namespace Umbraco.Web.Install.Models
ServerOrder = serverOrder;
Description = description;
var r = new Regex("", RegexOptions.Compiled | RegexOptions.Compiled);
//default
PerformsAppRestart = false;
}
public InstallSetupStepAttribute(InstallationType installTypeTarget, string name, int serverOrder, string description)
@@ -23,6 +24,9 @@ namespace Umbraco.Web.Install.Models
View = string.Empty;
ServerOrder = serverOrder;
Description = description;
//default
PerformsAppRestart = false;
}
public InstallationType InstallTypeTarget { get; private set; }
@@ -30,5 +34,12 @@ namespace Umbraco.Web.Install.Models
public string View { get; private set; }
public int ServerOrder { get; private set; }
public string Description { get; private set; }
/// <summary>
/// A flag to notify the installer that this step performs an app pool restart, this can be handy to know since if the current
/// step is performing a restart, we cannot 'look ahead' to see if the next step can execute since we won't know until the app pool
/// is restarted.
/// </summary>
public bool PerformsAppRestart { get; set; }
}
}