Exemplo n.º 1
0
        /// <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));
        }
Exemplo n.º 2
0
        /// <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));
        }