Show / Hide Table of Contents

Struct LeaseProvider<TMetadata>.State

Represents a state of the lease.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: DotNext.Threading.Leases
Assembly: DotNext.Threading.dll
Syntax
public readonly struct LeaseProvider<TMetadata>.State

Properties

View Source

CreatedAt

A timestamp of when this state was created.

Declaration
public required DateTimeOffset CreatedAt { get; init; }
Property Value
Type Description
DateTimeOffset
View Source

Identity

A version of the lease.

Declaration
public required LeaseIdentity Identity { get; init; }
Property Value
Type Description
LeaseIdentity
Remarks

Must be set of InitialVersion if there is no state in the underlying persistent storage.

View Source

Metadata

The metadata associated with the lease.

Declaration
public TMetadata Metadata { get; init; }
Property Value
Type Description
TMetadata

Extension Methods

BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾