Exemple #1
0
 public SessionFactory(
     IIbtFileParser telemetryFileParser,
     IIbtSessionParser telemetrySessionParser,
     IIbtFileReader telemetryFileReader)
 {
     _telemetryFileParser    = (telemetryFileParser == null) ? throw new ArgumentNullException(nameof(telemetryFileParser)) : telemetryFileParser;
     _telemetrySessionParser = (telemetrySessionParser == null) ? throw new ArgumentNullException(nameof(telemetrySessionParser)) : telemetrySessionParser;
     _telemetryFileReader    = (telemetryFileReader == null) ? throw new ArgumentNullException(nameof(telemetryFileReader)) : telemetryFileReader;
 }
Exemple #2
0
 public IbtFileParser(IIbtFileReader fileReader, IIbtSessionParser sessionParser)
 {
     _fileReader    = (fileReader == null) ? throw new ArgumentNullException(nameof(fileReader)) : fileReader;
     _sessionParser = (sessionParser == null) ? throw new ArgumentNullException(nameof(fileReader)) : sessionParser;
 }