DownloadString() public static method

public static DownloadString ( string uri ) : string
uri string
return string
コード例 #1
0
ファイル: ServerInfo.cs プロジェクト: williamrice/EDDI
        /// <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));
        }
コード例 #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")));
 }