Example #1
0
 public void Initialize(BatchStartOptions startOptions)
 {
     _startOptions = startOptions;
     if (_startOptions.IsValid())
     {
         StartBatchRun();
     }
 }
 public override async Task InitializeWith(BatchStartOptions startOptions)
 {
     _dto = new InputAndOutputBatchDTO();
     if (startOptions.IsValid())
     {
         _startedFromCommandLine = true;
         _logFileFullPath        = startOptions.LogFileFullPath;
         _dto.InputFolder        = startOptions.InputFolder;
         _dto.OutputFolder       = startOptions.OutputFolder;
         await RunBatch();
     }
     else
     {
         _startedFromCommandLine = false;
         _view.BindTo(_dto);
         _view.Display();
     }
 }