ChannelFactory.Close VS IClientChannel.Close
问题 Consider the following code which is typcial of many ChannelFactory examples: WSHttpBinding myBinding = new WSHttpBinding(); EndpointAddress myEndpoint = new EndpointAddress( ConfigurationSettings.AppSettings["HelloWorldServiceURL"]); ChannelFactory<IHelloWorldService> myChannelFactory = new ChannelFactory<IHelloWorldService>(myBinding, myEndpoint); IHelloWorldService proxy = myChannelFactory.CreateChannel(); ((IClientChannel)proxy).Open(); HelloWorldDataContract dc = proxy.SayHello(); (