예제 #1
0
 protected async override Task <bool> ProcessLine(DelimitedRow row)
 {
     return(await Task.Run(() =>
     {
         return LineProcessDelegate(row);
     }));
 }
예제 #2
0
        private void LineBuffer_Item(DelimitedRow item)
        {
            var success = PreProcessLine(item).Result;

            if (!success)
            {
                ErrorBag.Add(item.Line);
            }
        }
예제 #3
0
        private async Task <bool> PreProcessLine(DelimitedRow row)
        {
            RowNumber++;
            var success = await ProcessLine(row);

            if (RowNumber == InputNumber)
            {
                RaiseProcessCompleted("Completed");
            }

            return(success);
        }
예제 #4
0
 protected abstract Task <bool> ProcessLine(DelimitedRow row);