MetalamaAPI documentationPatterns APIMetalama.​Patterns.​CachingCaching­ProfileOn­Lock­Timeout
Open sandboxFocus

CachingProfile.OnLockTimeout Property


Gets or sets the behavior in case that the caching aspect could not acquire a lock because of a timeout. The default behavior is to throw a TimeoutException. If the delegate does not return any exception, the cached method will be evaluated (even without a lock).

public Action<LockTimeoutContext> OnLockTimeout { get; set; }
Property Value
Type Description