Struct CacheResult<TValue, TUpdate>
The result of a cache query.
public readonly struct CacheResult<TValue, TUpdate>
Type Parameters
TValueTUpdate
- Inherited Members
Properties
State
Describes the source of the contained value and whether Updated events are likely to be raised.
public ResultState State { get; }
Property Value
Value
A value retrieved from the datastore or the cache.
public TValue Value { get; }
Property Value
- TValue
Methods
AddUpdateHandler(UpdateHandler<TUpdate>, bool)
Create a weak event subscription, raised when a new value is available for the cached query.
public void AddUpdateHandler(UpdateHandler<TUpdate> handler, bool once = false)
Parameters
handlerUpdateHandler<TUpdate>oncebool