in src/ApiForFhirMigrationTool.Function/ExportStatusOrchestrator.cs [305:325]
public async Task<ResponseModel> ProcessExportStatusCheck([ActivityTrigger] string exportStatusUrl, FunctionContext executionContext)
{
_logger?.LogInformation("ProcessExportStatusCheck Started");
try
{
if (!string.IsNullOrEmpty(exportStatusUrl))
{
ResponseModel exportStatusResponse = await _exportProcessor.CheckProcessStatus(exportStatusUrl, _options.SourceUri, _options.SourceHttpClient);
_logger?.LogInformation("ProcessExportStatusCheck Finished");
return exportStatusResponse;
}
else
{
throw new ArgumentException($"Url to check export status was empty.");
}
}
catch
{
throw;
}
}