Class StateEntry
- Namespace
- IntentSharp.Documents
- Assembly
- IntentSharp.dll
A state value an IDocumentStore keeps beside the documents, such as a ledger or a tally that must survive a restart, with the etag that a compare-and-swap write names.
public sealed class StateEntry
- Inheritance
-
objectStateEntry
- Inherited Members
-
object.Equals(object)object.Equals(object, object)object.GetHashCode()object.GetType()object.ReferenceEquals(object, object)object.ToString()
- Extension Methods
Constructors
- StateEntry()
Creates a state entry; a store sets every property.
Properties
- Etag
An opaque text that changes with every write of the key; pass it to WriteStateAsync(string, JsonNode, string?, CancellationToken) to write only if no one else wrote since.
- Key
The state key, for example
"catalog/intents/ledger".
- UpdatedAt
When the value was last written.
- Value
The value as it was written. A store returns a copy, so changing it changes nothing in the store.