public AppService(IPlaylistService playlistService, IWeatherForecastService weatherForecastService, ICityRequestRepository cityRequestRepository, IMemoryCache memoryCache) { _weatherForecastService = weatherForecastService; _playlistService = playlistService; _cityRequestRepository = cityRequestRepository; _memoryCache = memoryCache; _cacheExpiryOptions = SetServiceCacheOptions(); }
public CityWeatherService( ICityRequestRepository cityRepository, INotificator notificator, IOptions <WeatherForecastConfig> openWeatherMapConfig, ILogger <CityWeatherService> logger) { _openWeatherMapConfig = openWeatherMapConfig; _cityRepository = cityRepository; _logger = logger; _notificator = notificator; }
public WeatherPlaylistService( IPlaylistService playlistService, ICityWeatherService weatherForecastService, ICityRequestRepository cityRequestRepository, IMemoryCache memoryCache, INotificator notificator, ILogger <WeatherPlaylistService> logger) { _weatherForecastService = weatherForecastService; _playlistService = playlistService; _cityRequestRepository = cityRequestRepository; _memoryCache = memoryCache; _notificator = notificator; _logger = logger; _cacheExpiryOptions = SetMemoryCacheOptions(); }
public WeatherForecastService(IOptions <WeatherForecastConfig> openWeatherMapConfig, ICityRequestRepository cityRepository) { _openWeatherMapConfig = openWeatherMapConfig; _cityRepository = cityRepository; }