示例#1
0
        public WeatherDataProvider(IWeatherHttpClient httpClient, IWeatherStorage weatherStorage,
                                   IWeatherDataUpdater dataUpdater)
        {
            _weatherHttpClient = httpClient;
            _weatherStorage    = weatherStorage;
            _dataUpdater       = dataUpdater;

            _dataUpdater.StartTimer();
        }
示例#2
0
 public WeatherDataUpdater(IWeatherSettings settings, IWeatherStorage weatherStorage, IWeatherHttpClient httpClient)
 {
     this._settings  = settings;
     _weatherStorage = weatherStorage;
     _httpClient     = httpClient;
 }