Skip to content

useHttpClientCreationMethod option not shown in NSwagStudio when not using a base class #5144

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

Open
rhegner opened this issue Apr 17, 2025 · 0 comments

Comments

@rhegner
Copy link

rhegner commented Apr 17, 2025

Describe the bug

NSwagStudio shows the useHttpClientCreationMethod option only if a base class is specified.

However, the option also makes perfect sense without a base class, if CreateHttpClientAsync is implemented in a partial class.

Version of NSwag toolchain, computer and .NET runtime used

NSwagStudio 14.3.0.0

To Reproduce

Try enabling the useHttpClientCreationMethod option without setting a base class.

Expected behavior

It should be possible to set the option also without configuring a base class. In my case, I'm implementing the CreateHttpClientAsync method in a partial class.

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

1 participant