From 7b7d6e090b2d58566ba7f33c55731f6d3e2f751a Mon Sep 17 00:00:00 2001 From: Terje Sandstrom Date: Wed, 12 Jan 2022 20:06:37 +0100 Subject: [PATCH] Update README.md Change to the code example. The code added is at least needed for non-DI, and at least needed for .net 6.0. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b13295d1..ac8d15dec 100644 --- a/README.md +++ b/README.md @@ -580,6 +580,7 @@ some interface `ITenantProvider` and has a data store `IAuthTokenStore` that can { this.tenantProvider = tenantProvider ?? throw new ArgumentNullException(nameof(tenantProvider)); this.authTokenStore = authTokenStore ?? throw new ArgumentNullException(nameof(authTokenStore)); + InnerHandler = new HttpClientHandler(); } protected override async Task SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) @@ -1213,4 +1214,4 @@ Note that exceptions raised when attempting to deserialize the response are not For users of [Serilog](https://serilog.net), you can enrich the logging of `ApiException` using the [Serilog.Exceptions.Refit](https://www.nuget.org/packages/Serilog.Exceptions.Refit) NuGet package. Details of how to -integrate this package into your applications can be found [here](https://github.com/RehanSaeed/Serilog.Exceptions#serilogexceptionsrefit). \ No newline at end of file +integrate this package into your applications can be found [here](https://github.com/RehanSaeed/Serilog.Exceptions#serilogexceptionsrefit).