Asp.net – How to use "TypedHttpClientFactory" with "AddHttpMessageHandler"?
I have some AuthorizationHandler that I register with a typed client: var clientFactory = services.BuildServiceProvider().GetRequiredService<IHttpClientFactory>(); services.AddHttpClient<TypedClient>() .AddHttpMessageHandler(() => { var authorization = new BearerAuthorization(clientFactory, clientId, clientSecret, authHost, token); return new AuthorizationHandler(authorization); }); When I get the "TypedClient" directly through the…