Exemple #1
0
        public async Task <IActionResult> GetBackups(string app)
        {
            var jobs = await backupService.GetBackupsAsync(AppId);

            var response = BackupJobsDto.FromBackups(jobs, this, app);

            return(Ok(response));
        }
Exemple #2
0
        public async Task <IActionResult> GetBackups(string app)
        {
            var jobs = await backupService.GetBackupsAsync(AppId, HttpContext.RequestAborted);

            var response = BackupJobsDto.FromBackups(jobs, Resources);

            return(Ok(response));
        }
        public async Task <IActionResult> GetBackups(string app)
        {
            var backupGrain = grainFactory.GetGrain <IBackupGrain>(AppId);

            var jobs = await backupGrain.GetStateAsync();

            var response = BackupJobsDto.FromBackups(jobs.Value, this, app);

            return(Ok(response));
        }