Class Lock
The entity written in the locks table by the DbDistributedLockManager.
Inheritance
System.Object
Lock
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.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 |
---|---|
System.DateTime |
Heartbeat
Gets or sets the last heartbeat timestamp.
Declaration
public DateTime Heartbeat { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.String |
Timestamp
Gets or sets the concurrency token.
Declaration
[Timestamp]
public byte[] Timestamp { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.String |