Esempio n. 1
0
 private void EnsureChannelExist()
 {
     if (_channel == null)
     {
         _channel = new ChannelFactory <T>(EndpointConfigurationFactory.GetBinding(), EndpointConfigurationFactory.GetEndpointAddress());
     }
 }
Esempio n. 2
0
        protected T CreateInstance()
        {
            EnsureChannelExist();

            return(_channel.CreateChannel(EndpointConfigurationFactory.GetEndpointAddress()));
        }