protected async Task <TResult> WrapHttpCall <TResult>(string url, HttpMethod method) { using (WebResponse response = await HttpClientDataProvider.RequestAsync(url, method)) { using (Stream stream = response.GetResponseStream()) { try { var data = await SerializerHelper.DeserializeFromStream(stream); return(HandleResponseSuccessful <TResult>(data)); } catch (Exception e) { Debug.WriteLine(e.StackTrace); return(default(TResult)); } } } }