Exemplo n.º 1
0
        public async Task <String> RetrieveExportJobStatusAsync(ExportWorkerQueueRecord exportWorkerQueueRecord)
        {
            try
            {
                RaiseAndLogDebugMessage("Retrieving the status of export job.");

                String exportJobStatus = await ArtifactQueries.RetrieveRdoTextFieldValueAsync(
                    rsapiApiOptions : RsapiApiOptions,
                    workspaceArtifactId : exportWorkerQueueRecord.WorkspaceArtifactId,
                    rdoRepository : RsapiRepositoryGroup.RdoRepository,
                    rdoArtifactId : exportWorkerQueueRecord.ExportJobArtifactId,
                    textFieldGuid : Constant.Guids.Field.ExportUtilityJob.Status);

                RaiseAndLogDebugMessage("Retrieved the status of export job.");

                return(exportJobStatus);
            }
            catch (Exception ex)
            {
                throw new AdminMigrationUtilityException(Constant.ErrorMessages.RetrieveExportJobStatusError, ex);
            }
        }