Skip to content

Commit 268c9c1

Browse files
Update readme
1 parent 2095f6b commit 268c9c1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ HttpClient allows to inject a custom http handler. In the follwing example, we i
5959
```C#
6060
static 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

9797
Console 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
105105
TotalRequests: 5
106106
-> CacheHit: 4
@@ -118,7 +118,7 @@ with InMemoryCacheHandler.
118118
```C#
119119
static 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

Comments
 (0)