HAKOM.Persistence.Core.Net.Api.References Namespace
Provides interfaces for lazy-loading references to persisted objects and for parsing a value that addresses an object either by its name or by its identifier. References allow stores to return lightweight pointers to data that can be resolved (loaded) on demand.
Key types:
- IReference — Base interface containing IStorageInformation about where the referenced object is stored.
- IReference<TReferred> — A typed reference that can be resolved to retrieve data of type
TReferred. - IReference<TIdentifier,TReferred> — A reference with a typed identifier used for store lookups.
- IResolvedReference<TReferred> — A reference that has already been resolved and contains its Value.
- IDefaultStorageInformationProvider<TReference> — Provides default storage information for references that do not explicitly specify a repository.
- INameOrIdentifierParser — Parses a value that addresses an object by its name or, prefixed with
id:, by its identifier. - INameOrIdentifier<TIdentifier> — The name or the identifier parsed by INameOrIdentifierParser.
| Interfaces | |
|---|---|
| IDefaultStorageInformationProvider<TReference> | Provides default storage information for specific references. |
| INameOrIdentifier<TIdentifier> | The result of TryParse<TIdentifier>(string): a value that addresses an object either by its Name or by its Identifier. |
| INameOrIdentifierParser | Parses a value that addresses an object either by its name or, prefixed with id:, by its identifier, such as the {timeSeries} route value of the HTTP API (Solar Production or id:42). |
| IReference | Represents a reference to a stored object. |
| IReference<TIdentifier,TReferred> | Represents a reference to a stored object. Its data may be retrieved from the store at any time by calling the Resolve(CancellationToken) method. |
| IReference<TReferred> | Represents a reference to a stored object. Its data may be retrieved from the store at any time by calling the Resolve(CancellationToken) method. |
| IResolvedReference<TReferred> | Represents a reference that has been resolved and contains its loaded value. |
Was this page helpful?Thanks for your feedback!