Interface IAbpDistributedLock
Namespace: Volo.Abp.DistributedLocking
Assembly: Volo.Abp.DistributedLocking.Abstractions.dll
Syntax
public interface IAbpDistributedLock
Methods
TryAcquireAsync(string, TimeSpan, CancellationToken)
Declaration
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> |