Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add constructor that doesn't set the InnerHandler so it can be used in HttpClientBuilder.AddHttpMessageHandler #54

Open
maartenmensink opened this issue Feb 16, 2022 · 1 comment

Comments

@maartenmensink
Copy link

Due to the fact that the constructor always sets the InnerHandler the HttpTracerHandler wont play nice with HttpClientBuilder.AddHttpMessageHandler<>() method.

A constructor overload or options allow the HttpTracerHandler to be construct with the InnerHandler not being set would fix this.

@DanielCauser
Copy link
Contributor

DanielCauser commented Jun 29, 2023

Hey @maartenmensink, Ideally you'll not need to create instances of the handler if you are using the builder. The .Build() method returns an instance of the HttpTracerHandler to you, with all the inner handlers setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants