示例#1
0
        public CacheMonitorTask(string host, int port)
        {
            this.host = host;
            this.port = port;

            repository = HAContext.Current.ContainerManager.Resolve <IServerInstRepository>();
            init();
        }
示例#2
0
 public LeaderContext(IZooKeeper zookeeper, INode node) : base(zookeeper)
 {
     this.zookeeper = zookeeper;
     this.node      = node;
     repository     = HAContext.Current.ContainerManager.Resolve <IServerInstRepository>();
 }