private void WriteIntoOutput() { NLogStart(); foreach (var row in AggregationData) { StoreKeyAction?.Invoke(row.Key, row.Value); OutputBuffer.SendAsync(row.Value).Wait(); LogProgress(); } NLogFinish(); }
private void WriteIntoOutput() { foreach (var row in AggregationData) { StoreKeyAction?.Invoke(row.Key, row.Value); if (!OutputBuffer.SendAsync(row.Value).Result) { throw new ETLBoxException("Buffer already completed or faulted!", this.Exception); } LogProgress(); } }