2014-02-26 16:30:25 +01:00
|
|
|
using System;
|
2014-03-04 19:20:36 +11:00
|
|
|
using System.Text.RegularExpressions;
|
2014-02-26 16:30:25 +01:00
|
|
|
|
|
|
|
|
namespace Umbraco.Web.Install.Models
|
|
|
|
|
{
|
|
|
|
|
public sealed class InstallSetupStepAttribute : Attribute
|
|
|
|
|
{
|
2014-03-04 19:20:36 +11:00
|
|
|
public InstallSetupStepAttribute(InstallationType installTypeTarget, string name, string view, int serverOrder, string description)
|
2014-02-26 16:30:25 +01:00
|
|
|
{
|
2014-03-04 19:20:36 +11:00
|
|
|
InstallTypeTarget = installTypeTarget;
|
2014-02-26 16:30:25 +01:00
|
|
|
Name = name;
|
|
|
|
|
View = view;
|
2014-03-04 11:16:42 +11:00
|
|
|
ServerOrder = serverOrder;
|
2014-03-03 08:57:00 +01:00
|
|
|
Description = description;
|
2014-03-04 19:20:36 +11:00
|
|
|
|
|
|
|
|
var r = new Regex("", RegexOptions.Compiled | RegexOptions.Compiled);
|
2014-03-04 11:16:42 +11:00
|
|
|
}
|
|
|
|
|
|
2014-03-04 19:20:36 +11:00
|
|
|
public InstallSetupStepAttribute(InstallationType installTypeTarget, string name, int serverOrder, string description)
|
2014-03-04 11:16:42 +11:00
|
|
|
{
|
2014-03-04 19:20:36 +11:00
|
|
|
InstallTypeTarget = installTypeTarget;
|
2014-03-04 11:16:42 +11:00
|
|
|
Name = name;
|
|
|
|
|
View = string.Empty;
|
|
|
|
|
ServerOrder = serverOrder;
|
2014-03-04 16:21:45 +11:00
|
|
|
Description = description;
|
2014-02-26 16:30:25 +01:00
|
|
|
}
|
|
|
|
|
|
2014-03-04 19:20:36 +11:00
|
|
|
public InstallationType InstallTypeTarget { get; private set; }
|
2014-02-26 16:30:25 +01:00
|
|
|
public string Name { get; private set; }
|
|
|
|
|
public string View { get; private set; }
|
2014-03-04 11:16:42 +11:00
|
|
|
public int ServerOrder { get; private set; }
|
2014-03-03 08:57:00 +01:00
|
|
|
public string Description { get; private set; }
|
2014-02-26 16:30:25 +01:00
|
|
|
}
|
|
|
|
|
}
|