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