Table of Contents

Class DocumentLeaseFailure<TKey>

Namespace
Tharga.MongoDB.Lockable
Assembly
Tharga.MongoDB.dll

One commit failure inside a DocumentLease<T, TKey>.

public record DocumentLeaseFailure<TKey> : IEquatable<DocumentLeaseFailure<TKey>>

Type Parameters

TKey
Inheritance
DocumentLeaseFailure<TKey>
Implements
Inherited Members

Properties

Error

Human-readable failure message.

public required string Error { get; init; }

Property Value

string

Id

The id of the document whose decision failed to apply.

public required TKey Id { get; init; }

Property Value

TKey

IntendedDecision

The decision that was attempted. null if the failure occurred during the release-unchanged path.

public required CommitMode? IntendedDecision { get; init; }

Property Value

CommitMode?