private void EnsureChannelExist() { if (_channel == null) { _channel = new ChannelFactory <T>(EndpointConfigurationFactory.GetBinding(), EndpointConfigurationFactory.GetEndpointAddress()); } }
protected T CreateInstance() { EnsureChannelExist(); return(_channel.CreateChannel(EndpointConfigurationFactory.GetEndpointAddress())); }