public OtfsController(IStationFileStore fileStore, IEnqueuer <StationFileToProcess> enqueuer) { if (fileStore == null) { throw new ArgumentNullException(nameof(fileStore)); } if (enqueuer == null) { throw new ArgumentNullException(nameof(enqueuer)); } this.fileStore = fileStore; this.enqueuer = enqueuer; }
public StationFileToProcessConsumer(IStationFileStore fileStore, IStationSensorStatePersister statePersister, IEnqueuer <StationSensorHourlyStateChanged> hourlyEnqueuer, ILogger logger) { if (fileStore == null) { throw new ArgumentNullException(nameof(fileStore)); } if (statePersister == null) { throw new ArgumentNullException(nameof(statePersister)); } if (hourlyEnqueuer == null) { throw new ArgumentNullException(nameof(hourlyEnqueuer)); } this.fileStore = fileStore; this.statePersister = statePersister; this.hourlyEnqueuer = hourlyEnqueuer; this.logger = logger ?? NoOpLogger.DoNothing; }