Geeks With Blogs
FOXJAZZ developing with .net October 2019 Entries
http client gets data from service call
using (var client = new HttpClient()) { string contentType = "application/json"; client.DefaultRequestHeader... MediaTypeWithQualityHeaderV... var response = client.GetAsync(baseuri).Re... if (response.IsSuccessStatusCode) { var responseContent = response.Content; // by calling .Result you are synchronously reading the result string responseString = responseContent.ReadAsStrin... eveHome = JsonConvert.DeserializeObje... } ......

Posted On Monday, October 21, 2019 3:14 AM

Copyright © foxjazz | Powered by: GeeksWithBlogs.net