예제 #1
0
        private async Task <StreamReader> ReadImportJobFileContentsAsync(string tempFileLocation)
        {
            RaiseMessage($"Reading contents of import file for import job. {_errorContext}");

            //Obtain ArtifactID of File Field on Markup Utility File object
            var markupFileFieldArtifactId = await QueryHelper.GetArtifactIdByGuidAsync(AgentHelper.GetDBContext(WorkspaceArtifactId), Constant.Guids.Field.MarkupUtilityFile.File);

            return(await ArtifactQueries.GetFileFieldContentsAsync(
                       AgentHelper.GetServicesManager(),
                       ExecutionIdentity.CurrentUser,
                       WorkspaceArtifactId,
                       markupFileFieldArtifactId,
                       _markupUtilityImportJob.FileArtifactId,
                       tempFileLocation));
        }