peachyontop

Async

Mar 25th, 2024
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.17 KB | None | 0 0
  1. private static async Task<string> CallUrl(string fullUrl)
  2. {
  3.     HttpClient client = new HttpClient();
  4.     var response = await client.GetStringAsync(fullUrl);
  5.     return response;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment