When adding a connected service to .net core 2.0 using the WCF web service link provider to the SOAP interface, System.ServiceModel.ClientBase version 4.2.0.0 no longer has the IDisposable interface found in version 4.0.0.0.
This means that I can no longer transfer it to the using statement (or use try / finally and delete the object) as follows:
using (MyClass.MyClassSoapClient client = new MyClass.MyClassSoapClient(EndpointConfiguration.MyClassSoap))
I cannot understand why IDisposable was deleted, and should I try to implement it myself or the intention to use the SOAP interface in a different way in the .net core?
source
share