示例#1
0
        private async Task <ImportResult> ReProcessException(ImportError exception)
        {
            if (!ConfigurationSettings.GetBoolean("ReprocessImportAfterHandleError"))
            {
                return(null);
            }

            var queuedItem = new ImportQueue()
            {
                ImportId      = exception.FdpImportId,
                ImportQueueId = exception.ImportQueueId,
                LineNumber    = int.Parse(exception.LineNumber)
            };

            return(await Task.FromResult(DataContext.Import.ReprocessImportQueue(queuedItem)));
        }