Exemplo n.º 1
0
 public DefaultWeatherData(CityWeather cityWeather, DefaultWeatherSourceOptions options)
 {
     EffectiveAt   = DateTime.UtcNow;
     SourceId      = options.GetSourceIdOrDefault();
     City          = cityWeather.city;
     Temperature   = cityWeather.temperature;
     Precipitation = cityWeather.precipitation;
     Weather       = cityWeather.weather;
 }
Exemplo n.º 2
0
 public WeatherSourceBase(ILogger <DefaultWeatherSource> Logger, DefaultWeatherSourceOptions options)
 {
     _Logger  = Logger ?? throw new ArgumentNullException(nameof(Logger));
     _Options = options ?? throw new ArgumentNullException(nameof(options));
 }
Exemplo n.º 3
0
 public DoomyWeatherSource(ILogger <DefaultWeatherSource> Logger, DefaultWeatherSourceOptions options) :
     base(Logger, options)
 {
 }