Files
Umbraco-CMS/src/Umbraco.Core/Installer/IInstallStep.cs
Mole 8c8405bbbf V14: Fix up install controller (#15646)
* Rename InstallVResponseModel to InstallRequestModel

* Align SettingsInstallController

* Rename split DatabaseInstallResponseModel in two

* Change UserInstallResponseModel to UserInstallViewModel

* Use PresentationModel instead of ViewModel

* Use operation status pattern when validating database

* Prepare for install to return a message

* Begin updating steps

* Make StepBase sharable between upgrade and install

* Update steps

* Use error message from install steps in install controller

* Use error message from upgrade steps in upgrade controller

* Use 500 for install/upgrade failed

It's entirely likely that it has nothing to do with the request

* Updated OpenApi.Json

---------

Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2024-01-30 13:12:08 +01:00

24 lines
809 B
C#

using Umbraco.Cms.Core.Models.Installer;
namespace Umbraco.Cms.Core.Installer;
/// <summary>
/// Defines a step that's required to install Umbraco.
/// </summary>
public interface IInstallStep
{
/// <summary>
/// Executes the install step.
/// </summary>
/// <param name="model">InstallData model containing the data provided by the installer UI.</param>
/// <returns></returns>
Task<Attempt<InstallationResult>> ExecuteAsync(InstallData model);
/// <summary>
/// Determines if the step is required to execute.
/// </summary>
/// <param name="model">InstallData model containing the data provided by the installer UI.</param>
/// <returns>True if the step should execute, otherwise false.</returns>
Task<bool> RequiresExecutionAsync(InstallData model);
}