Exemplo n.º 1
0
        public void Dispose()
        {
            log.Debug("Closing");

            //CloseableUtils.closeQuietly(ensembleProvider);
            ensembleProvider.Dispose();
            try
            {
                zooKeeper.CloseAndClear();
            }
            catch (Exception e)
            {
                throw new System.IO.IOException(e.Message, e);
            }
            finally
            {
                isConnected = false;
                //Interlocked.Exchange (ref isConnected, false);
            }
        }