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.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: DotNext.Threading.Leases
Assembly: DotNext.Threading.dll
Syntax
public readonly struct LeaseProvider<TMetadata>.State

Properties

| Edit this page View Source

CreatedAt

A timestamp of when this state was created.

Declaration
public required DateTimeOffset CreatedAt { get; init; }
Property Value
Type Description
DateTimeOffset
| Edit this page 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.

| Edit this page 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, ReadOnlySpan<T>)
Collection.ToAsyncEnumerator<TEnumerator, T>(TEnumerator, CancellationToken)
Collection.ToClassicEnumerator<TEnumerator, T>(TEnumerator)
Enumerator.Skip<TEnumerator, T>(ref TEnumerator, int)
ExpressionBuilder.Const<T>(T)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾