Class LocalAbpDistributedLock
Inheritance
object
LocalAbpDistributedLock
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.DistributedLocking
Assembly: Volo.Abp.DistributedLocking.Abstractions.dll
Syntax
public class LocalAbpDistributedLock : IAbpDistributedLock, ISingletonDependency
Constructors
LocalAbpDistributedLock(IDistributedLockKeyNormalizer)
Declaration
public LocalAbpDistributedLock(IDistributedLockKeyNormalizer distributedLockKeyNormalizer)
Parameters
Type | Name | Description |
---|---|---|
IDistributedLockKeyNormalizer | distributedLockKeyNormalizer |
Properties
DistributedLockKeyNormalizer
Declaration
protected IDistributedLockKeyNormalizer DistributedLockKeyNormalizer { get; }
Property Value
Type | Description |
---|---|
IDistributedLockKeyNormalizer |
Methods
TryAcquireAsync(string, TimeSpan, CancellationToken)
Declaration
public Task<IAbpDistributedLockHandle?> TryAcquireAsync(string name, TimeSpan timeout = default, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
System.TimeSpan | timeout | |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><IAbpDistributedLockHandle> |