Method Run
Run()
Calls 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 DoBody() exits.
Declaration
public virtual T Run()
Returns
Type | Description |
---|---|
T |
Exceptions
Type | Condition |
---|---|
LockObtainFailedException | if lock could not be obtained |