public void TestGetChannelIsCached() { ChannelBase channel1 = factory.GetChannel(config); ChannelBase channel2 = factory.GetChannel(config); Assert.AreSame(channel1, channel2); }
public void TestGetChannelIsCached() { Channel channel1 = CachedChannelFactory.GetChannel(config); Channel channel2 = CachedChannelFactory.GetChannel(config); Assert.AreEqual(channel1, channel2); }
public void TestGetChannelRemovesClosedChannels() { Channel channel1 = CachedChannelFactory.GetChannel(config); channel1.ShutdownAsync().Wait(); Channel channel2 = CachedChannelFactory.GetChannel(config); Assert.AreNotEqual(channel1, channel2); }