Table of Contents

Enum ContentSource

Namespace
Quilt4Net.Toolkit.Features.Content
Assembly
Quilt4Net.Toolkit.dll

Where a resolved content value actually came from. Surfaced so a consumer can tell a real server value apart from a fallback — the distinction the toolkit has always resolved internally but previously only wrote to the Debug log.

public enum ContentSource

Fields

Cache = 1

Served from the local cache, within its TTL, from a value the server supplied.

Default = 0

The caller's default value was used — the server had no override for the key (404), was unreachable, or timed out. Also reported for a cached entry that holds a default rather than server content, so a negative-cache hit is never mistaken for a real cache hit.

Developer = 4

Developer language is active — every key resolves to the placeholder text.

NoApiKey = 5

No API key is configured, so no lookup was attempted and the default was used.

Server = 3

Fetched from Quilt4Net.Server on this call.

StaleCache = 2

Served from the local cache after its TTL expired, with a background refresh started (stale-while-revalidate). The value came from the server, but may be out of date.

Unknown = 6

The IContentService implementation does not report provenance. Returned by the default interface implementation, so a custom or test implementation that only overrides GetContentAsync reports "unknown" rather than guessing.