public IDisposable CurrentlyIndexing() { currentlyIndexingLock.EnterReadLock(); return new DisposableAction(currentlyIndexingLock.ExitReadLock); }