Exemplo n.º 1
0
 public PresentationService()
 {
     var applicationRootPath = System.Web.Hosting.HostingEnvironment.MapPath("/");
     var keyPath = System.Web.Hosting.HostingEnvironment.MapPath("/env/openWeatherMapKey.txt");
     _settingsService = new SettingsService(applicationRootPath, keyPath);
     context = HttpContext.Current;
     Weather = new PresentationWeather(context, _settingsService);
 }
Exemplo n.º 2
0
 public BaseService(SettingsService settingsService)
 {
     SettingsService = settingsService;
     Settings = new Settings { KeyPath = settingsService.GetKeyPath(), };
 }
Exemplo n.º 3
0
 public WeatherService(SettingsService settingsService) : base(settingsService)
 {
 }
Exemplo n.º 4
0
 public BaseService(SettingsService settingsService)
 {
     SettingsService = settingsService;
     Settings        = new Settings(settingsService.GetKeyPath(), settingsService.GetConfigurationPath());
 }
Exemplo n.º 5
0
 public PresentationWeather(HttpContext context, SettingsService settingsService)
 {
     this.context = context;
     _weatherService = new WeatherService(settingsService);
 }