Exemplo n.º 1
0
        public ProviderZookeeperRegistry(ServerCacheContainer cacheContainer)
        {
            _cacheContainer = cacheContainer;

            _zookeeperInvoker = new ZookeeperInvoker();

            _zooKeeper = _zookeeperInvoker.Create(_cacheContainer.Application.RegisterAddress, Constant.ZK_SESSION_TIMEOUT, null);
        }
Exemplo n.º 2
0
        public ConsumerZookeeperRegistry(string registerAddress)
        {
            _zookeeperInvoker = new ZookeeperInvoker();

            _zookeeper = _zookeeperInvoker.Create(registerAddress, Constant.ZK_SESSION_TIMEOUT, null);
        }