public override void RegisterRealTasks(PhysicalServer site) { string location; if (RemotePathHelper.IsUncPath(_location)) { location = _path.ConvertUncShareToLocalPath(site, _location); } else { location = _location; } if (site.IsLocal) { site.AddTask(new LocalNServiceBusInstallTask(_exeName, location, _instanceName, _username, _password, _serviceName, _displayName, _description, _startManualy)); } else { site.AddTask(new RemoteNServiceBusInstallTask(_exeName, location, _instanceName, site, _username, _password, _serviceName, _displayName, _description, _startManualy)); } }
public override void RegisterRealTasks(PhysicalServer s) { string scrubbedPath; if (RemotePathHelper.IsUncPath(PathOnServer)) { scrubbedPath = _path.ConvertUncShareToLocalPath(s, PathOnServer); } else { scrubbedPath = PathOnServer; } if (Version == IisVersion.Six) { s.AddTask(new Iis6Task { PathOnServer = scrubbedPath, ServerName = s.Name, VdirPath = VdirPath, WebsiteName = WebsiteName, AppPoolName = AppPoolName }); return; } s.AddTask(new Iis7Task { PathOnServer = scrubbedPath, ServerName = s.Name, VdirPath = VdirPath, WebsiteName = WebsiteName, AppPoolName = AppPoolName, UseClassicPipeline = ClassicPipelineRequested, ManagedRuntimeVersion = this.ManagedRuntimeVersion, PathForWebsite = this.PathForWebsite, PortForWebsite = this.PortForWebsite, Enable32BitAppOnWin64 = Bit32Requested }); }
public override void RegisterRealTasks(PhysicalServer server) { string location; if (RemotePathHelper.IsUncPath(this.location)) { location = path.ConvertUncShareToLocalPath(server, this.location); } else { location = this.location; } if (server.IsLocal) { server.AddTask(new LocalNServiceBusUninstallTask(exeName, location, instance, serviceName)); } else { server.AddTask(new RemoteNServiceBusUninstallTask(exeName, location, instance, server, serviceName)); } }