public ActionBlock <ProcessingReport> ReportToFile(PathToFile pathToReportFile) { var block = new ActionBlock <ProcessingReport>(report => { var helper = new ProcessingReportHelper(); helper.WriteTo(report, pathToReportFile.File); }); return(block); }
public FlowBuilderFactory_v3 ReportToFile(PathToFile pathToReportFile) { var block = new ActionBlock <object>(reportObject => { var report = (ProcessingReport)reportObject; var helper = new ProcessingReportHelper(); helper.WriteTo(report, pathToReportFile.File); }); Flow.Add(block); return(this); }