DownloadString() public static method

public static DownloadString ( string uri ) : string
uri string
return string
Beispiel #1
0
        /// <summary>
        /// Obtain information from the update server.  Note that this throws exceptions if it fails
        /// </summary>
        public static ServerInfo FromServer(string baseUri)
        {
            string data = Net.DownloadString(baseUri + "info.json");

            return(data == null ? null : JsonConvert.DeserializeObject <ServerInfo>(data));
        }
Beispiel #2
0
 /// <summary>
 /// Obtain information from the update server.  Note that this throws exceptions if it fails
 /// </summary>
 public static ServerInfo FromServer(string baseUri)
 {
     return(JsonConvert.DeserializeObject <ServerInfo>(Net.DownloadString(baseUri + "_info")));
 }