public async Task <IActionResult> GetRestoreJob() { var job = await backupService.GetRestoreAsync(); if (job == null) { return(NotFound()); } var response = RestoreJobDto.FromJob(job); return(Ok(response)); }
public async Task <IActionResult> GetRestoreJob() { var job = await backupService.GetRestoreAsync(HttpContext.RequestAborted); if (job == null) { return(NotFound()); } var response = RestoreJobDto.FromDomain(job); return(Ok(response)); }
public async Task <IActionResult> GetJob() { var restoreGrain = grainFactory.GetGrain <IRestoreGrain>(User.OpenIdSubject()); var job = await restoreGrain.GetJobAsync(); if (job.Value == null) { return(NotFound()); } var response = RestoreJobDto.FromJob(job.Value); return(Ok(response)); }