Table of Contents

Class InMemoryLockSettings

Namespace
Silverback.Lock
Assembly
Silverback.Storage.Memory.dll

The InMemoryLock settings.

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

Constructors

InMemoryLockSettings(InMemoryLockSettings)

protected InMemoryLockSettings(InMemoryLockSettings original)

Parameters

original InMemoryLockSettings

InMemoryLockSettings(string)

Initializes a new instance of the InMemoryLockSettings class.

public InMemoryLockSettings(string lockName)

Parameters

lockName string

The name of the lock.

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Methods

Equals(DistributedLockSettings?)

public override sealed bool Equals(DistributedLockSettings? other)

Parameters

other DistributedLockSettings

Returns

bool

Equals(InMemoryLockSettings?)

public virtual bool Equals(InMemoryLockSettings? other)

Parameters

other InMemoryLockSettings

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 override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(InMemoryLockSettings?, InMemoryLockSettings?)

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

Parameters

left InMemoryLockSettings
right InMemoryLockSettings

Returns

bool

operator !=(InMemoryLockSettings?, InMemoryLockSettings?)

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

Parameters

left InMemoryLockSettings
right InMemoryLockSettings

Returns

bool