public OptionInput(TimeoutOption timeoutOption, MonitorOption monitorOption, CityListReader cityListReader) { this.timeoutOption = timeoutOption; this.monitorOption = monitorOption; this.cityListReader = cityListReader; cityListReader.Read(); }
public BackgroundMonitor(ILoggerFactory loggerFactory, IOutput output, IEnumerable <ISourceReader> sourceReaders, TimeoutOption timeoutOption, IOptionInput input) { this.logger = loggerFactory.CreateLogger <BackgroundMonitor>(); this.output = output; this.sourceReaders = sourceReaders; this.timeoutOption = timeoutOption; this.input = input; }