示例#1
0
 public void Execute(string[] args)
 {
     try
     {
         var executionParameters = _commandLineOptionsParserService.Parse(args);
         _reportingService.CreateReport(
             executionParameters.GetEngineName(),
             executionParameters.GetInputFiles(),
             executionParameters.GetOutputDirectory());
     }
     catch (CommandLineOptionsParserService.Error error)
     {
         _logger.Error(error.Message);
     }
     catch (Exception e)
     {
         _logger.Error(e.Message);
         _logger.Error(e.StackTrace);
     }
 }
        protected FileStreamResult ExportResult(DataTable dataTable)
        {
            var memoryStream = _reportingService.CreateReport(dataTable, ReportConstants.SLOTSEARCHREPORTHEADING);

            return(GetFileStream(memoryStream));
        }