/// <summary> /// Downloads the specified asset string. /// </summary> public static string DownloadAssetString(string sha, string path) { if (path.Length > 0) { if (path[0] != '/') { path = "/" + path; } } return(WebManager.DownloadString(ServiceCore.ConfigurationServer + "/assets/" + sha + "/" + path)); }
/// <summary> /// Downloads the specified config string. /// </summary> public static string DownloadConfigString(string path) { if (path.Length > 0) { if (path[0] != '/') { path = "/" + path; } } return(WebManager.DownloadString(ServiceCore.ConfigurationServer + "/" + ServiceCore.ServiceEnvironment + path)); }