Show / Hide Table of Contents

Class MedallionAbpDistributedLock

Inheritance
object
MedallionAbpDistributedLock
Implements
IAbpDistributedLock
ITransientDependency
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
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
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
TimeSpan timeout
CancellationToken cancellationToken
Returns
Type Description
Task<IAbpDistributedLockHandle>

Implements

IAbpDistributedLock
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform