此行因未公开的异常而中断我的申请。
var client = new HttpClient();
var responseMessage =await client.GetAsync("http://localhost:63650/api/student");
//HttpContent content = responseMessage.Content;
//var json = await content.ReadAsStringAsync();
var RestUrl = "http://localhost:63650/api/student";
var uri = new Uri(string.Format(RestUrl, string.Empty));
var response = await client.GetAsync(uri);
if (response.IsSuccessStatusCode)
{
var content = await response.Content.ReadAsStringAsync();
var item = JsonConvert.DeserializeObject<List<Student>>(content);
}