We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
NSwag generated client with custom constructor
Is it possible to use nswag an generate custom constructor with additional param. When I run nswag to generate api client, I got this ctor:
WeatherClient(IConfiguration configuration, HttpClient httpClient)
how can I generate api client with this constructor:
WeatherClient(IConfiguration configuration, HttpClient httpClient, IMemoryCache memoryCache)
I know in nswag file I can set configuration class but how can I configure so I can have IMemoryCache injected in this generated client.
I am using command line tool to generate the client. I tried liquid templates client.class.contructor but it add to the ctor but doesn't replace it
The text was updated successfully, but these errors were encountered:
No branches or pull requests
NSwag generated client with custom constructor
Is it possible to use nswag an generate custom constructor with additional param. When I run nswag to generate api client, I got this ctor:
WeatherClient(IConfiguration configuration, HttpClient httpClient)
how can I generate api client with this constructor:
WeatherClient(IConfiguration configuration, HttpClient httpClient, IMemoryCache memoryCache)
I know in nswag file I can set configuration class but how can I configure so I can have IMemoryCache injected in this generated client.
I am using command line tool to generate the client. I tried liquid templates client.class.contructor but it add to the ctor but doesn't replace it
The text was updated successfully, but these errors were encountered: