0
我有這樣的代碼,它從服務器獲取GET並檢索JSON。如何查詢服務器並檢查更新
private async void JSON_click(object sender,RoutedEventArgs e)
{
var client=new HttpClient();
client.MaxResponseBufferSize=1024*1024;
var response= await Client.GetAsync(new Uri(The URL here));
var result = await response.Content.ReadAsStringAsync();
var component=JsonObject.Parse(result);
}
我需要每30秒輪詢一次服務器以檢查更新並檢索JSON。有什麼建議麼?
也許看看SignalR – TryingToImprove 2013-05-05 19:53:07