public Watcher Wrap(INodeWatcher watcher, bool ignoreCache) { if (watcher == null) { return(null); } if (ignoreCache) { return(new ZooKeeperNodeWatcher(watcher, log)); } return(watcherWrappers.Obtain(watcher, w => new ZooKeeperNodeWatcher(w, log))); }
public ZooKeeperNodeWatcher(INodeWatcher watcher, ILog log) { this.watcher = watcher; this.log = log; }