protected async override Task <bool> ProcessLine(DelimitedRow row) { return(await Task.Run(() => { return LineProcessDelegate(row); })); }
private void LineBuffer_Item(DelimitedRow item) { var success = PreProcessLine(item).Result; if (!success) { ErrorBag.Add(item.Line); } }
private async Task <bool> PreProcessLine(DelimitedRow row) { RowNumber++; var success = await ProcessLine(row); if (RowNumber == InputNumber) { RaiseProcessCompleted("Completed"); } return(success); }
protected abstract Task <bool> ProcessLine(DelimitedRow row);