/// <summary> /// Expert: remove a previously added <see cref="IReaderClosedListener"/>. /// <para/> /// @lucene.experimental /// </summary> public void RemoveReaderClosedListener(IReaderClosedListener listener) { EnsureOpen(); readerClosedListeners.Remove(listener); }
/// <summary> /// Expert: adds a <see cref="IReaderClosedListener"/>. The /// provided listener will be invoked when this reader is closed. /// <para/> /// @lucene.experimental /// </summary> public void AddReaderClosedListener(IReaderClosedListener listener) { EnsureOpen(); readerClosedListeners.Add(listener); }