示例#1
0
 public WeatherService(HttpClient httpClient, DefaultLocations defaultCities, RedisClient redisClient, IMetrics metrics)
 {
     this.defaultCities = defaultCities.Cities;
     this.httpClient    = httpClient;
     this.redisClient   = redisClient;
     this.metrics       = metrics;
 }
示例#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");
 }
示例#3
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");
        }