Class NullLockManager
This implementation of IDistributedLockManager doesn't actually acquire nor check any lock. Is is used when the NullLockSettings are specified or no other IDistributedLockManager is registered.
Inheritance
System.Object
NullLockManager
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Silverback.Background
Assembly: Silverback.Core.dll
Syntax
public class NullLockManager : IDistributedLockManager
Methods
| Improve this doc View sourceAcquireAsync(DistributedLockSettings, CancellationToken)
Declaration
public Task<DistributedLock> AcquireAsync(DistributedLockSettings settings, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
DistributedLockSettings | settings | |
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<DistributedLock> |
CheckIsStillLockedAsync(DistributedLockSettings)
Declaration
public Task<bool> CheckIsStillLockedAsync(DistributedLockSettings settings)
Parameters
Type | Name | Description |
---|---|---|
DistributedLockSettings | settings |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |
ReleaseAsync(DistributedLockSettings)
Declaration
public Task ReleaseAsync(DistributedLockSettings settings)
Parameters
Type | Name | Description |
---|---|---|
DistributedLockSettings | settings |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
SendHeartbeatAsync(DistributedLockSettings)
Declaration
public Task<bool> SendHeartbeatAsync(DistributedLockSettings settings)
Parameters
Type | Name | Description |
---|---|---|
DistributedLockSettings | settings |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |