Table of Contents

Class DistributedLockSettings

Namespace
Silverback.Lock
Assembly
Silverback.Core.dll

The DistributedLock settings.

public abstract record DistributedLockSettings : IValidatableSettings, IEquatable<DistributedLockSettings>
Inheritance
DistributedLockSettings
Implements
Derived
Inherited Members

Constructors

DistributedLockSettings(DistributedLockSettings)

protected DistributedLockSettings(DistributedLockSettings original)

Parameters

original DistributedLockSettings

DistributedLockSettings(string)

Initializes a new instance of the DistributedLockSettings class.

protected DistributedLockSettings(string lockName)

Parameters

lockName string

The name of the lock.

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

LockName

Gets the name of the lock.

public string LockName { get; }

Property Value

string

Methods

Equals(DistributedLockSettings?)

public virtual bool Equals(DistributedLockSettings? other)

Parameters

other DistributedLockSettings

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Validate()

Throws a SilverbackConfigurationException if the configuration is not valid.

public virtual void Validate()

Operators

operator ==(DistributedLockSettings?, DistributedLockSettings?)

public static bool operator ==(DistributedLockSettings? left, DistributedLockSettings? right)

Parameters

left DistributedLockSettings
right DistributedLockSettings

Returns

bool

operator !=(DistributedLockSettings?, DistributedLockSettings?)

public static bool operator !=(DistributedLockSettings? left, DistributedLockSettings? right)

Parameters

left DistributedLockSettings
right DistributedLockSettings

Returns

bool