PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching Namespace / Caching­Profile Class / Caching­Profile Properties / Caching­Profile.​Acquire­Lock­Timeout Property

CachingProfile.AcquireLockTimeout Property

Gets or sets the maximum time that the caching aspect will wait for the LockManager to acquire a lock. To specify an infinite waiting time, set this property to TimeSpan.FromMilliseconds( -1 ). The default behavior is to wait infinitely.

Namespace:  PostSharp.Patterns.Caching
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 2023.0.3.0 (2023.0.3.0)
public TimeSpan AcquireLockTimeout { get; set; }

Property Value

Type: TimeSpan
See Also