Exemplo n.º 1
0
        public async Task <IActionResult> GetBackups(string app)
        {
            var jobs = await backupService.GetBackupsAsync(AppId, HttpContext.RequestAborted);

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

            return(Ok(response));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> GetBackups(string app)
        {
            var jobs = await backupService.GetBackupsAsync(AppId);

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

            return(Ok(response));
        }
Exemplo n.º 3
0
        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));
        }