Windows.Web.Http.HttpClient Timeout Option
问题 Due to SSL certificate issue we are using "Windows.Web.Http.HttpClient" API in my app service layer. I referred below sample for my project. http://code.msdn.microsoft.com/windowsapps/HttpClient-sample-55700664 How can we implement the timeout option in "Windows.Web.Http.HttpClient" API 回答1: You can use a CancellationTokenSource with a timeout. HttpClient client = new HttpClient(); var cancellationTokenSource = new CancellationTokenSource(2000); //timeout try { var response = await client