PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Locking Namespace / IAcquire­Lock­Timeout­Strategy Interface / IAcquire­Lock­Timeout­Strategy Methods / IAcquire­Lock­Timeout­Strategy.​On­Timeout Method

IAcquireLockTimeoutStrategy.OnTimeout Method

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.

Namespace:  PostSharp.Patterns.Caching.Locking
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
void OnTimeout(
	string key
)

Parameters

key
Type: System.String
Cache key (name of the lock).
See Also