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