54
1
using System;
2
using System.Collections.Generic;
3
using System.Collections.Concurrent;
4
using System.Linq;
5
using System.Net.Http;
6
using System.Threading.Tasks;
7
8
9
public class Program
10
{
11
private static readonly ConcurrentDictionary<string, string> cachedDownloads = new();
12
private static readonly HttpClient httpClient = new();
13
14
public static async Task Main()
15
{
16
var message = await GreetingAsync();
17
Console.WriteLine(message);
18
19
string[] urls = new[]
20
{
21
"https://docs.microsoft.com/aspnet/core",
22
"https://docs.microsoft.com/dotnet",
23
"https://docs.microsoft.com/dotnet/azure",
24
"https://docs.microsoft.com/dotnet/machine-learning",
Cached Result