Struct LeaseProvider<TMetadata>.State
Represents a state of the lease.
Inherited Members
Namespace: DotNext.Threading.Leases
Assembly: DotNext.Threading.dll
Syntax
public readonly struct LeaseProvider<TMetadata>.State
Properties
| Edit this page View SourceCreatedAt
A timestamp of when this state was created.
Declaration
public required DateTimeOffset CreatedAt { get; init; }
Property Value
Type | Description |
---|---|
DateTimeOffset |
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.
Metadata
The metadata associated with the lease.
Declaration
public TMetadata Metadata { get; init; }
Property Value
Type | Description |
---|---|
TMetadata |