protected override void Process(InstallModulesArgs args) { Assert.ArgumentNotNull(args, "args"); Instance instance = args.Instance; IEnumerable<Product> modules = args.Modules; string param = this.ProcessorDefinition.Param; ConfigurationActions.ExecuteActions(instance, modules.ToArray(), this.done, param, args.ConnectionString, this.Controller); }
protected override void Process(InstallModulesArgs args) { Assert.ArgumentNotNull(args, nameof(args)); Instance instance = args.Instance; IEnumerable <Product> modules = args.Modules; var param = this.ProcessorDefinition.Param; ConfigurationActions.ExecuteActions(instance, modules.ToArray(), this.done, param, args.ConnectionString, this.Controller); }
protected override void Process([NotNull] InstallModulesArgs args) { Assert.ArgumentNotNull(args, nameof(args)); foreach (var module in args.Modules.Where(m => m.IsPackage)) { if (this.done.Contains(module)) { continue; } AgentHelper.InstallPackage(args.Instance, module); this.done.Add(module); } }
protected override void Process([NotNull] InstallModulesArgs args) { Assert.ArgumentNotNull(args, "args"); AgentHelper.ResetStatus(args.Instance); foreach (Product module in args.Modules.Where(m => m.IsPackage)) { if (this.done.Contains(module)) { continue; } AgentHelper.PerformPostStepAction(args.Instance, module); this.done.Add(module); } }
protected override void Process([NotNull] InstallModulesArgs args) { Assert.ArgumentNotNull(args, nameof(args)); if (ProcessorDefinition.Param == "nowait") { try { InstanceHelper.StartInstance(args.Instance, 500); } catch { // ignore error } } else { InstanceHelper.StartInstance(args.Instance); } }
public void OnClick(Window mainWindow, Instance instance) { if (!EnvironmentHelper.CheckSqlServer()) { return; } if (instance == null) { return; } var path = Path.Combine(instance.WebRootPath, @"sitecore\admin\toolbox"); if (!FileSystem.FileSystem.Local.Directory.Exists(path)) { var product = Product.GetFilePackageProduct(Path.Combine(ApplicationManager.DefaultPackages, PackageName)) ?? Product.GetFilePackageProduct(Path.Combine(ApplicationManager.FilePackagesFolder, PackageName)); if (product == null) { WindowHelper.HandleError("The " + PackageName + " package cannot be found in either the .\\File Packages folder or %appdata%\\Sitecore\\Sitecore Instance Manager\\Custom Packages one", false, null); return; } var products = new[] { product }; var args = new InstallModulesArgs(instance, products); PipelineManager.StartPipeline("installmodules", args, isAsync: false); } if (!FileSystem.FileSystem.Local.Directory.Exists(path)) { return; } if (this.bypassSecurity) { InstanceHelperEx.OpenInBrowserAsAdmin(instance, mainWindow, @"/sitecore/admin"); } else { InstanceHelperEx.BrowseInstance(instance, mainWindow, @"/sitecore/admin", false); } }
protected override bool IsRequireProcessing(InstallModulesArgs args) { Assert.ArgumentNotNull(args, "args"); return args.Modules.Any(m => m.IsPackage); }
protected override void Process([NotNull] InstallModulesArgs args) { Assert.ArgumentNotNull(args, "args"); AgentHelper.CopyPackages(args.Instance, args.Modules); }
protected override bool IsRequireProcessing(InstallModulesArgs args) { Assert.ArgumentNotNull(args, "args"); return(args.Modules.Any(m => m.IsPackage)); }
protected abstract void Process([NotNull] InstallModulesArgs args);
protected virtual bool IsRequireProcessing([NotNull] InstallModulesArgs args) { Assert.ArgumentNotNull(args, "args"); return(true); }
protected virtual long EvaluateStepsCount([NotNull] InstallModulesArgs args) { Assert.ArgumentNotNull(args, "args"); return(1); }
protected override void Process([NotNull] InstallModulesArgs args) { Assert.ArgumentNotNull(args, "args"); InstanceHelper.StartInstance(args.Instance); }
protected override void Process([NotNull] InstallModulesArgs args) { Assert.ArgumentNotNull(args, nameof(args)); AgentHelper.CopyAgentFiles(args.Instance); }
protected override bool IsRequireProcessing(InstallModulesArgs args) { return !this.ProcessorDefinition.Param.EqualsIgnoreCase("archive") || (args.Modules != null && args.Modules.Any(m => m != null && m.IsArchive)); }
protected override bool IsRequireProcessing(InstallModulesArgs args) { return(!this.ProcessorDefinition.Param.EqualsIgnoreCase("archive") || (args.Modules != null && args.Modules.Any(m => m != null && m.IsArchive))); }
protected override void Process([NotNull] InstallModulesArgs args) { Assert.ArgumentNotNull(args, "args"); AgentHelper.DeleteAgentFiles(args.Instance); }