Table of Contents

Class SilverbackLock

Namespace
Silverback.Lock
Assembly
Silverback.Storage.EntityFramework.dll

Represents a lock stored in the database.

public class SilverbackLock
Inheritance
SilverbackLock
Inherited Members

Constructors

SilverbackLock()

public SilverbackLock()

Properties

AcquiredOn

Gets or sets the acquired on timestamp.

public DateTime? AcquiredOn { get; set; }

Property Value

DateTime?

ConcurrencyToken

Gets or sets the concurrency token.

[Timestamp]
public byte[]? ConcurrencyToken { get; set; }

Property Value

byte[]

Handler

Gets or sets the identifier of the handler that acquired the lock.

[MaxLength(200)]
public string? Handler { get; set; }

Property Value

string

LastHeartbeat

Gets or sets the last heartbeat timestamp.

public DateTime? LastHeartbeat { get; set; }

Property Value

DateTime?

LockName

Gets the name of the lock.

[Key]
[Required]
[MaxLength(200)]
public string LockName { get; init; }

Property Value

string