Esempio n. 1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         @delegate.Dispose();
     }
 }
Esempio n. 2
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposed || !disposing)
            {
                return;
            }

            StopUpdateThread();
            infoStream.Dispose(); // LUCENENET specific
            disposed = true;
        }
Esempio n. 3
0
        public override int DoLogic()
        {
            IndexWriter iw = RunData.IndexWriter;

            if (iw != null)
            {
                // If infoStream was set to output to a file, close it.
                InfoStream infoStream = iw.Config.InfoStream;
                if (infoStream != null)
                {
                    infoStream.Dispose();
                }
                iw.Dispose(doWait);
                RunData.IndexWriter = null;
            }
            return(1);
        }
Esempio n. 4
0
        protected virtual void Dispose(bool disposing)
        {
            UninterruptableMonitor.Enter(syncLock);
            try
            {
                if (disposed || !disposing)
                {
                    return;
                }

                StopUpdateThread();
                infoStream.Dispose(); // LUCENENET specific
                disposed = true;
            }
            finally
            {
                UninterruptableMonitor.Exit(syncLock);
            }
        }
Esempio n. 5
0
 public override void Dispose()
 {
     @delegate.Dispose();
 }