チャネルを閉じて安心するな。ChannelFactory
var factory = new ChannelFactory<IGreetingService>( new NetTcpBinding(), "net.tcp://localhost:808/IGreetingService"); var channel = factory.CreateChannel(); var result = channel.Greet("Honda"); // チャネルを閉じる ((IChannel)channel).Close(); // ChannelFactory<T> も閉じる factory.Close();
ChannelFactory