Class SilverbackLock
Represents a lock stored in the database.
Inherited Members
Namespace: Silverback.Lock
Assembly: Silverback.Storage.EntityFramework.dll
Syntax
public class SilverbackLock
Constructors
SilverbackLock()
Represents a lock stored in the database.
Declaration
public SilverbackLock()
Properties
AcquiredOn
Gets or sets the acquired on timestamp.
Declaration
public DateTime? AcquiredOn { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
ConcurrencyToken
Gets or sets the concurrency token.
Declaration
[Timestamp]
public byte[]? ConcurrencyToken { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
Handler
Gets or sets the identifier of the handler that acquired the lock.
Declaration
[MaxLength(200)]
public string? Handler { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
LastHeartbeat
Gets or sets the last heartbeat timestamp.
Declaration
public DateTime? LastHeartbeat { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTime? |
LockName
Gets the name of the lock.
Declaration
[Key]
[Required]
[MaxLength(200)]
public string LockName { get; init; }
Property Value
| Type | Description |
|---|---|
| string |