From c53ac4b074bdb3a07a8b65007bde12746fa3395f Mon Sep 17 00:00:00 2001 From: Matt Connew Date: Thu, 13 Jul 2017 13:09:43 -0700 Subject: [PATCH] Adding IDisposable to ClientBase --- .../ref/System.ServiceModel.Primitives.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/System.ServiceModel.Primitives/ref/System.ServiceModel.Primitives.cs b/src/System.ServiceModel.Primitives/ref/System.ServiceModel.Primitives.cs index 229955ba522..57fa09328ad 100644 --- a/src/System.ServiceModel.Primitives/ref/System.ServiceModel.Primitives.cs +++ b/src/System.ServiceModel.Primitives/ref/System.ServiceModel.Primitives.cs @@ -107,7 +107,7 @@ protected ChannelFactory(System.Type channelType) { } public virtual TChannel CreateChannel(System.ServiceModel.EndpointAddress address, System.Uri via) { return default(TChannel); } protected override System.ServiceModel.Description.ServiceEndpoint CreateDescription() { return default(System.ServiceModel.Description.ServiceEndpoint); } } - public abstract partial class ClientBase : System.ServiceModel.ICommunicationObject where TChannel : class + public abstract partial class ClientBase : System.IDisposable, System.ServiceModel.ICommunicationObject where TChannel : class { protected ClientBase() { } protected ClientBase(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) { } @@ -139,6 +139,7 @@ void System.ServiceModel.ICommunicationObject.EndClose(System.IAsyncResult resul void System.ServiceModel.ICommunicationObject.EndOpen(System.IAsyncResult result) { } void System.ServiceModel.ICommunicationObject.Open() { } void System.ServiceModel.ICommunicationObject.Open(System.TimeSpan timeout) { } + void System.IDisposable.Dispose() { } protected delegate System.IAsyncResult BeginOperationDelegate(object[] inValues, System.AsyncCallback asyncCallback, object state); protected partial class ChannelBase : System.IDisposable, System.ServiceModel.Channels.IChannel, System.ServiceModel.Channels.IOutputChannel, System.ServiceModel.Channels.IRequestChannel, System.ServiceModel.IClientChannel, System.ServiceModel.ICommunicationObject, System.ServiceModel.IContextChannel, System.ServiceModel.IExtensibleObject where T : class {