public WeatherService(HttpClient httpClient, DefaultLocations defaultCities, RedisClient redisClient, IMetrics metrics)
 {
     this.defaultCities = defaultCities.Cities;
     this.httpClient    = httpClient;
     this.redisClient   = redisClient;
     this.metrics       = metrics;
 }
Beispiel #2
0
 public static EPubInternalPath GetDefaultLocation(DefaultLocations location)
 {
     switch (location)
     {
         case DefaultLocations.DefaultTextFolder:
             return GetDefaultTextFilesFolder();
         case DefaultLocations.DefaultLicenseFolder:
             return new EPubInternalPath(DefaultOebpsFolder + "/license/");
         case DefaultLocations.DefaultImagesFolder:
             return new EPubInternalPath(DefaultOebpsFolder + "/images/");
     }
     throw new ArgumentException(@"Unknown path type","location");
 }
        public static EPubInternalPath GetDefaultLocation(DefaultLocations location)
        {
            switch (location)
            {
            case DefaultLocations.DefaultTextFolder:
                return(GetDefaultTextFilesFolder());

            case DefaultLocations.DefaultLicenseFolder:
                return(new EPubInternalPath(DefaultOebpsFolder + "/license/"));

            case DefaultLocations.DefaultImagesFolder:
                return(new EPubInternalPath(DefaultOebpsFolder + "/images/"));
            }
            throw new ArgumentException(@"Unknown path type", "location");
        }