Interface IDistributedLockManager
- Namespace
- Microsoft.Azure.WebJobs.Host
- Assembly
- Microsoft.Azure.WebJobs.Host.dll
[Obsolete("Not ready for public consumption.")]
public interface IDistributedLockManager
Methods
GetLockOwnerAsync(string, string, CancellationToken)
Task<string> GetLockOwnerAsync(string account, string lockId, CancellationToken cancellationToken)
Parameters
account
string
lockId
string
cancellationToken
CancellationToken
Returns
- Task<string>
ReleaseLockAsync(IDistributedLock, CancellationToken)
Task ReleaseLockAsync(IDistributedLock lockHandle, CancellationToken cancellationToken)
Parameters
lockHandle
IDistributedLock
cancellationToken
CancellationToken
Returns
- Task
RenewAsync(IDistributedLock, CancellationToken)
Task<bool> RenewAsync(IDistributedLock lockHandle, CancellationToken cancellationToken)
Parameters
lockHandle
IDistributedLock
cancellationToken
CancellationToken
Returns
- Task<bool>
TryLockAsync(string, string, string, string, TimeSpan, CancellationToken)
Task<IDistributedLock> TryLockAsync(string account, string lockId, string lockOwnerId, string proposedLeaseId, TimeSpan lockPeriod, CancellationToken cancellationToken)
Parameters
account
string
lockId
string
lockOwnerId
string
proposedLeaseId
string
lockPeriod
TimeSpan
cancellationToken
CancellationToken
Returns
- Task<IDistributedLock>