/// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="redisConnection">注册中心redis连接地址</param>
 public ServiceDiscovery(string redisConnection)
 {
     _directory = new ServiceDirectoryProxy(redisConnection);
 }
예제 #2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="redisConnection">注册中心redis连接地址</param>
 /// <param name="logger">日志</param>
 public Registry(string redisConnection, ILog logger)
 {
     _logger    = logger;
     _directory = new ServiceDirectoryProxy(redisConnection);
 }