public WeatherServiceLoggingDecorator(IOpenWeatherMapClient weatherService, ILogger <WeatherServiceLoggingDecorator> logger)
 {
     _innerWeatherService = weatherService;
     _logger = logger;
 }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="weatherService"></param>
 /// <param name="cache"></param>
 public OpenWeatherController(ILogger <HomeController> logger, IOpenWeatherMapClient weatherService, IMemoryCache cache)
 {
     _logger         = logger;
     _weatherService = weatherService;
     _cache          = cache;
 }
Beispiel #3
0
 public WeatherService(IOpenWeatherMapClient weatherClient, IMapper mapper)
 {
     _weatherClient = weatherClient;
     _mapper        = mapper;
 }
 public WeatherServiceCachingDecorator(IOpenWeatherMapClient weatherService, IMemoryCache cache, ILogger <WeatherServiceCachingDecorator> logger)
 {
     _innerWeatehrService = weatherService;
     _cache  = cache;
     _logger = logger;
 }
 public WeatherService(IOpenWeatherMapClient client)
 {
     _client = client;
 }
Beispiel #6
0
 public WeatherService(IWeatherCache cache, IOpenWeatherMapClient client, AppConfig config)
 {
     this.m_config = config;
     this.m_client = client;
     this.m_cache  = cache;
 }
Beispiel #7
0
 public WeatherController(IOpenWeatherMapClient openWeatherMapClient)
 {
     OpenWeatherMapClient = openWeatherMapClient;
 }