public ConnectionState(IZookeeperFactory zookeeperFactory, IEnsembleProvider ensembleProvider, TimeSpan sessionTimeout, TimeSpan connectionTimeout, IWatcher parentWatcher, ITracerDriver tracer, bool canBeReadOnly) { this.ensembleProvider = ensembleProvider; this.sessionTimeout = sessionTimeout; this.connectionTimeout = connectionTimeout; this.tracer = tracer; if (parentWatcher != null) { parentWatchers.Enqueue(parentWatcher); } zooKeeper = new HandleHolder(zookeeperFactory, this, ensembleProvider, sessionTimeout, canBeReadOnly); }
public ConnectionState(IZookeeperFactory zookeeperFactory, IEnsembleProvider ensembleProvider, TimeSpan sessionTimeout, TimeSpan connectionTimeout, IWatcher parentWatcher, ITracerDriver tracer, bool canBeReadOnly) { this.ensembleProvider = ensembleProvider; this.sessionTimeout = sessionTimeout; this.connectionTimeout = connectionTimeout; this.tracer = tracer; if ( parentWatcher != null ) { parentWatchers.Enqueue (parentWatcher); } zooKeeper = new HandleHolder(zookeeperFactory, this, ensembleProvider, sessionTimeout, canBeReadOnly); }
public SyncHelper(HandleHolder parent) { this.parent = parent; }