Beispiel #1
0
        public IOperation BackupService(Deployment deployment)
        {
            var serviceName   = deployment.GetServiceName();
            var serviceFolder = deployment.GetDeployFolder();
            var backupFolder  = deployment.GetBackupFolder();

            return(new BackupService(serviceName, serviceFolder, backupFolder));
        }
Beispiel #2
0
        public IOperation StopService(Deployment deployment, bool skipIfNotFound)
        {
            var serviceName = deployment.GetServiceName();

            return(new StopService(serviceName)
            {
                SkipIfNotFound = skipIfNotFound
            });
        }
Beispiel #3
0
        public IOperation StartService(Deployment deployment)
        {
            var serviceName = deployment.GetServiceName();

            return(new StartService(serviceName));
        }