-
Notifications
You must be signed in to change notification settings - Fork 31
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
Use the public class/keyword instead of internal to allow customized HttpClient #270
Comments
hello and thank you for your submission. could you share some more details on what exactly you're trying to achieve? I see the classes you mentioned are all related to the following interface: management-sdk-net/Kontent.Ai.Management/Modules/HttpClient/IManagementHttpClient.cs Line 11 in 366e496
Is your goal to use the internal implementation for implementing this interface, with the exception of httpClient, which should be your custom one? if that is the case, I think we could add a paramater to would the above solution work in your scenario? |
The Management client creates a ManagementHttpClient which creates a new HttpClient, but this is your internal HttpClient type. Our suggestion would be to remove the internally specified/created HttpClient and IHttpClient type (as they conflict with the existing HttpClient), and allow a registered IHttpClient on the ManagementClient.
|
Motivation
Customers want to use a customize httpClient (with proxy) when creating a managementCient.
Proposed solution
Replace internal by public for the following classes:
The text was updated successfully, but these errors were encountered: