Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

httpclient getstringasync

private static async string HttpGet(string uri)
        {
            var http = new HttpClient();
            http.BaseAddress = new Uri(uri);
            var res = await http.GetStringAsync("");
            return res;
        }
Source by www.csharpcodi.com #
 
PREVIOUS NEXT
Tagged: #httpclient #getstringasync
ADD COMMENT
Topic
Name
5+8 =