PostSharpAPI ReferencePost­Sharp.​Patterns.​Caching.​LockingIAcquire­Lock­Timeout­StrategyOn­Timeout
Open sandboxFocus

IAcquireLockTimeoutStrategy.OnTimeout Method

OnTimeout(String)

Method invoked when the caching aspect cannot acquire a lock because of a timeout. If this method returns without an exception, the caching aspect will invoke the cached method without acquiring the lock.

Declaration
void OnTimeout(string key)
Parameters
Type Name Description
System.String key

Cache key (name of the lock).