Exemple #1
0
        public ActionBlock <ProcessingReport> ReportToFile(PathToFile pathToReportFile)
        {
            var block = new ActionBlock <ProcessingReport>(report =>
            {
                var helper = new ProcessingReportHelper();
                helper.WriteTo(report, pathToReportFile.File);
            });

            return(block);
        }
Exemple #2
0
        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);
        }