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

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