// TODO: The actionHandler concept should be refactored out of this domain service... public void Install(IronFrontInfo info, Action <StatusRepo, string, Action> actionHandler) { Confirmations(info); if (info.IsInstalled()) { if (!ConfirmPatchedToLatestVersion(info)) { actionHandler(info.Status, "IFA Patching", () => ApplyLatestPatches(info)); } return; } actionHandler(info.Status, "IFA Conversion", () => CleanInstall(info)); }
// TODO: The actionHandler concept should be refactored out of this domain service... public void Install(IronFrontInfo info, Action<StatusRepo, string, Action> actionHandler) { Confirmations(info); if (info.IsInstalled()) { if (!ConfirmPatchedToLatestVersion(info)) actionHandler(info.Status, "IFA Patching", () => ApplyLatestPatches(info)); return; } actionHandler(info.Status, "IFA Conversion", () => CleanInstall(info)); }