Class Lock
The entity written in the locks table by the DbDistributedLockManager.
Inherited Members
Namespace: Silverback.Database.Model
Assembly: Silverback.Core.dll
Syntax
public class Lock
Properties
| Improve this doc View sourceCreated
Gets or sets the record creation date.
Declaration
public DateTime Created { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Heartbeat
Gets or sets the last heartbeat timestamp.
Declaration
public DateTime Heartbeat { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Name
Gets or sets the name of the lock / the resource being locked.
Declaration
[Key]
[MaxLength(500)]
public string? Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Timestamp
Gets or sets the concurrency token.
Declaration
[Timestamp]
public byte[]? Timestamp { get; set; }
Property Value
Type | Description |
---|---|
byte[] |
UniqueId
Gets or sets a unique identifier representing the entity trying to acquire the lock.
Declaration
[MaxLength(200)]
public string? UniqueId { get; set; }
Property Value
Type | Description |
---|---|
string |