示例#1
0
 public static Uri GetUrl(string subdomain, DataCenterLocations location, string resource = "")
 {
     if (location == DataCenterLocations.NorthAmerica)
     {
         return(new Uri(
                    string.Format(BaseUrl, subdomain, "", resource)
                    ));
     }
     else
     {
         return(new Uri(
                    string.Format(BaseUrl, subdomain, (int)location, resource)
                    ));
     }
 }
示例#2
0
 public static Uri GetServiceUrl(DataCenterLocations location)
 {
     return(GetUrl(_adminApiDomain, location));
 }