-
Notifications
You must be signed in to change notification settings - Fork 52
Why does WebProxyClient override Dispose to an empty method. #255
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
Comments
if your using .net core, Could you give us a bit more information on your use case? how are you using the client? thanks |
We now create a connection pool of ServiceClient, there is a parent client with its clones, when the pool is ready to delete, we dispose the parent and clones |
@MattB-msft https://docs.microsoft.com/en-us/dotnet/framework/wcf/samples/use-close-abort-release-wcf-client-resources |
@MattB-msft Could you help have a look at this issue, we are now using this sdk and will release at the end of this month, Thanks |
We will look at optimizing that, however that code has been in production use across the Microsoft ecosystem since 2015 with very few reported issues of this type. There is some research going on regarding this and memory consumption patterns on our servers. That said, We are keeping this item open while we research it. |
Thanks for the information, by the way, we use .net core, I don't know whether the implementation of WCF in .net core is different |
Lots of things are different in .net core unfortunately (or fortunately depending on view point :) ) |
PowerPlatform-DataverseServiceClient/src/GeneralTools/DataverseClient/Client/Connector/WebProxyClient.cs
Line 209 in 254952f
The WebProxyClient's Dispose method seems close over the ClientBase's dispose method, and also I call ServiceClient.Dispose every time, there are lots of HttpClient in HttpChannelFactory:

The text was updated successfully, but these errors were encountered: