コード例 #1
0
        public async Task <IActionResult> GetRestoreJob()
        {
            var job = await backupService.GetRestoreAsync();

            if (job == null)
            {
                return(NotFound());
            }

            var response = RestoreJobDto.FromJob(job);

            return(Ok(response));
        }
コード例 #2
0
ファイル: RestoreController.cs プロジェクト: jrlost/squidex
        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));
        }
コード例 #3
0
        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));
        }