public ReinstallArgs(Instance instance, SqlConnectionStringBuilder connectionString, string license, string webServerIdentity, bool serverSideRedirect) { ConnectionString = connectionString; Name = instance.Name; _Bindings = instance.Bindings; Product = instance.Product; WebRootPath = instance.WebRootPath; RootPath = instance.RootPath; DataFolderPath = instance.DataFolderPath; DatabasesFolderPath = Path.Combine(RootPath, "Databases"); WebServerIdentity = webServerIdentity; LicenseFilePath = license; _Modules = new Product[0]; IsClassic = instance.IsClassic; Is32Bit = instance.Is32Bit; ForceNetFramework4 = instance.IsNetFramework4; ServerSideRedirect = serverSideRedirect; TempFolder = Path.Combine(RootPath, "Temp"); _InstanceDatabases = instance.AttachedDatabases; instanceName = instance.Name; _StopInstance = instance.Stop; WebsiteID = instance.ID; SqlPrefix = AttachDatabasesHelper.GetSqlPrefix(instance); var executionTimeout = UpdateWebConfigHelper.GetHttpRuntime(instance.GetWebResultConfig()).GetAttribute("executionTimeout"); IncreaseExecutionTimeout = string.IsNullOrEmpty(executionTimeout) || executionTimeout != "600"; }
protected override void Process([NotNull] ReinstallArgs args) { Assert.ArgumentNotNull(args, "args"); UpdateWebConfigHelper.Process(args.RootPath, args.WebRootPath, args.DataFolderPath); }
protected override void Process(InstallArgs args) { Assert.ArgumentNotNull(args, "args"); UpdateWebConfigHelper.Process(args.RootFolderPath, args.WebRootPath, args.DataFolderPath, args.ServerSideRedirect, args.IncreaseExecutionTimeout); }