Is your feature request related to a problem? Please describe.
If an instance is of type ICommunicationObject, there's additional handing needed when dispose it. See https://learn.microsoft.com/en-us/dotnet/framework/wcf/samples/use-close-abort-release-wcf-client-resources
Describe the solution you'd like
Check if an object is ICommunicationObject. If it is, then we can do something like this: https://github.com/ninject/Ninject.Extensions.Wcf/blob/master/src/Ninject.Extensions.Wcf/CommunicationObjectExtension.cs
Describe alternatives you've considered
Or expose an extension point to let user customize the dispose strategy.
Additional context
Is your feature request related to a problem? Please describe.
If an instance is of type
ICommunicationObject, there's additional handing needed when dispose it. See https://learn.microsoft.com/en-us/dotnet/framework/wcf/samples/use-close-abort-release-wcf-client-resourcesDescribe the solution you'd like
Check if an object is
ICommunicationObject. If it is, then we can do something like this: https://github.com/ninject/Ninject.Extensions.Wcf/blob/master/src/Ninject.Extensions.Wcf/CommunicationObjectExtension.csDescribe alternatives you've considered
Or expose an extension point to let user customize the dispose strategy.
Additional context