Apache Lucene.Net 2.4.0 Class Library API

Lock.With.Run Method 

Calls {@link #doBody} while lock is obtained. Blocks if lock cannot be obtained immediately. Retries to obtain lock once per second until it is obtained, or until it has tried ten times. Lock is released when {@link #doBody} exits.

public virtual object Run();

See Also

Lock.With Class | Lucene.Net.Store Namespace