diff --git a/README.md b/README.md index 3cf6399..f3a7c7d 100644 --- a/README.md +++ b/README.md @@ -36,13 +36,18 @@ After registering the services you can inject the client and configuration. ```csharp public class MyService { - private readonly ITjekClient _tjekClient; + private readonly IHttpClientFactory _httpClientFactory; private readonly TjekClientConfig _tjekClientConfig; - public MyService(ITjekClient tjekClient, IOptions tjekClientConfig) + public MyService(IHttpClientFactory httpClientFactory, IOptions tjekClientConfig) { - _tjekClient = tjekClient; + _httpClientFactory = httpClientFactory; _tjekClientConfig = tjekClientConfig.Value; } + + public Task MyMethod() + { + var client = _httpClientFactory.CreateClient(Constants.HttpClientName); + } } ```