public void Run([NotNull] RunArgument args) { MainBurgdorfStatisticsCreator mb = new MainBurgdorfStatisticsCreator(null); if (!File.Exists(args.Filename)) { Console.WriteLine("No config found."); } if (args.Filename == null) { throw new FlaException("filename was null"); } RunningConfig rconfig = RunningConfig.Load(args.Filename); Console.WriteLine("Starting..."); Console.WriteLine("Config is:"); Console.WriteLine(JsonConvert.SerializeObject(rconfig, Formatting.Indented)); Console.WriteLine("----"); Logger logger = new Logger(null, rconfig); logger.Info("initializing slices", Stage.Preparation, nameof(Program)); rconfig.InitializeSlices(logger); rconfig.CheckInitalisation(); mb.RunBasedOnSettings(rconfig, logger); }
public void ResultReport([NotNull] RunArgument args) { if (!File.Exists(args.Filename)) { Console.WriteLine("No config found."); } if (args.Filename == null) { throw new FlaException("filename was null"); } RunningConfig rconfig = RunningConfig.Load(args.Filename); Console.WriteLine("Starting..."); Console.WriteLine("Config is:"); Console.WriteLine(JsonConvert.SerializeObject(rconfig, Formatting.Indented)); Console.WriteLine("----"); Logger logger = new Logger(null, rconfig); ReportGenerator rgbt = new ReportGenerator(logger); rgbt.Run(rconfig); }