protected override void Dispose(bool disposing) { if (disposing) { @delegate.Dispose(); } }
protected virtual void Dispose(bool disposing) { if (disposed || !disposing) { return; } StopUpdateThread(); infoStream.Dispose(); // LUCENENET specific disposed = true; }
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); }
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); } }
public override void Dispose() { @delegate.Dispose(); }