在Xamarin.Forms

时间:2016-12-06 14:01:11

标签: xamarin.forms

我在Xamarin.Forms

中执行以下代码时,框架不在模块中
var httpClient = new HttpClient();
        httpClient.BaseAddress = new Uri("http://abcd.com");

        string json = @"{""userNo"":""xyz"",""passcode"":""12345""}";

        var content = new StringContent(json, Encoding.UTF8, "application/json");
        HttpResponseMessage rsponse = await httpClient.PostAsync("/credentialCheckAp.cgi", content); // Problem Occurs in this line while debugging 
        var result = await rsponse.Content.ReadAsStringAsync();

0 个答案:

没有答案