@@ -59,7 +59,7 @@ HttpClient allows to inject a custom http handler. In the follwing example, we i
5959``` C#
6060static void Main (string [] args )
6161{
62- const string url = " http://worldclockapi.com /api/json/utc/now " ;
62+ const string url = " http://worldtimeapi.org /api/timezone/Europe/Zurich " ;
6363
6464 var httpClientHandler = new HttpClientHandler ();
6565 var cacheExpirationPerHttpResponseCode = CacheExpirationProvider .CreateSimple (TimeSpan .FromSeconds (60 ), TimeSpan .FromSeconds (10 ), TimeSpan .FromSeconds (5 ));
@@ -96,11 +96,11 @@ static void Main(string[] args)
9696
9797Console output:
9898```
99- Attempt 1: HTTP GET http://worldclockapi.com /api/json/utc/now ... completed in 625ms
100- Attempt 2: HTTP GET http://worldclockapi.com /api/json/utc/now ... completed in 48ms
101- Attempt 3: HTTP GET http://worldclockapi.com /api/json/utc/now ... completed in 1ms
102- Attempt 4: HTTP GET http://worldclockapi.com /api/json/utc/now ... completed in 1ms
103- Attempt 5: HTTP GET http://worldclockapi.com /api/json/utc/now ... completed in 1ms
99+ Attempt 1: HTTP GET http://worldtimeapi.org /api/timezone/Europe/Zurich ... completed in 625ms
100+ Attempt 2: HTTP GET http://worldtimeapi.org /api/timezone/Europe/Zurich ... completed in 48ms
101+ Attempt 3: HTTP GET http://worldtimeapi.org /api/timezone/Europe/Zurich ... completed in 1ms
102+ Attempt 4: HTTP GET http://worldtimeapi.org /api/timezone/Europe/Zurich ... completed in 1ms
103+ Attempt 5: HTTP GET http://worldtimeapi.org /api/timezone/Europe/Zurich ... completed in 1ms
104104
105105TotalRequests: 5
106106-> CacheHit: 4
@@ -118,7 +118,7 @@ with InMemoryCacheHandler.
118118``` C#
119119static void Main (string [] args )
120120{
121- const string url = " http://worldclockapi.com /api/json/utc/now " ;
121+ const string url = " http://worldtimeapi.org /api/timezone/Europe/Zurich " ;
122122
123123 var httpClientHandler = new HttpClientHandler ();
124124 var cacheExpirationPerHttpResponseCode = CacheExpirationProvider .CreateSimple (TimeSpan .FromSeconds (60 ), TimeSpan .FromSeconds (10 ), TimeSpan .FromSeconds (5 ));
0 commit comments