private void SaveReport()
        {
            _logger.Trace("Saving report...");
            var report     = _activityProcessor.GenerateReport(DateTime.Now);
            var reportPath = _reportSerializer.SerializeReport(report);

            Process.Start(reportPath);
            _logger.Info("Report is saved");
        }
Exemplo n.º 2
0
        public Task Execute(IJobExecutionContext context)
        {
            _logger.Trace("Executing...");
            var report = _activityProcessor.GenerateReport(DateTime.Now);

            _reportSerializer.SerializeReport(report);
            _logger.Info("Executed");
            return(Task.CompletedTask);
        }