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

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