private static ChannelFactoryRef <TChannel> CreateChannelFactoryRef(EndpointTrait <TChannel> endpointTrait)
        {
            ChannelFactory <TChannel> channelFactory = endpointTrait.CreateChannelFactory();

            channelFactory.TraceOpenAndClose = false;
            return(new ChannelFactoryRef <TChannel>(channelFactory));
        }
예제 #2
0
        static ChannelFactoryRef <TChannel> CreateChannelFactoryRef(EndpointTrait <TChannel> endpointTrait)
        {
            Fx.Assert(endpointTrait != null, "The endpointTrait should not be null when the factory can be shared.");

            ChannelFactory <TChannel> channelFactory = endpointTrait.CreateChannelFactory();

            channelFactory.TraceOpenAndClose = false;
            return(new ChannelFactoryRef <TChannel>(channelFactory));
        }