예제 #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));
        }
예제 #2
0
        private object ShowBackups(dynamic parameters)
        {
            Deployment deployment = GetDeployment(parameters);

            var backupFolder = deployment.GetBackupFolder();

            var folders = Folder
                          .EnumerateFolders(backupFolder)
                          .SortDescending(x => x.CreationTime);

            return(new BackupListModel(deployment.Id, folders));
        }