Class MedallionAbpDistributedLock
Inheritance
object
MedallionAbpDistributedLock
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.dll
Syntax
[Dependency(ReplaceServices = true)]
public class MedallionAbpDistributedLock : IAbpDistributedLock, ITransientDependency
Constructors
MedallionAbpDistributedLock(IDistributedLockProvider, ICancellationTokenProvider, IDistributedLockKeyNormalizer)
Declaration
public MedallionAbpDistributedLock(IDistributedLockProvider distributedLockProvider, ICancellationTokenProvider cancellationTokenProvider, IDistributedLockKeyNormalizer distributedLockKeyNormalizer)
Parameters
Type | Name | Description |
---|---|---|
Medallion.Threading.IDistributedLockProvider | distributedLockProvider | |
ICancellationTokenProvider | cancellationTokenProvider | |
IDistributedLockKeyNormalizer | distributedLockKeyNormalizer |
Properties
CancellationTokenProvider
Declaration
protected ICancellationTokenProvider CancellationTokenProvider { get; }
Property Value
Type | Description |
---|---|
ICancellationTokenProvider |
DistributedLockKeyNormalizer
Declaration
protected IDistributedLockKeyNormalizer DistributedLockKeyNormalizer { get; }
Property Value
Type | Description |
---|---|
IDistributedLockKeyNormalizer |
DistributedLockProvider
Declaration
protected IDistributedLockProvider DistributedLockProvider { get; }
Property Value
Type | Description |
---|---|
Medallion.Threading.IDistributedLockProvider |
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> |