Class ConfigurationResult<T>
- Namespace
- Quilt4Net.Toolkit.Features.FeatureToggle
- Assembly
- Quilt4Net.Toolkit.dll
A resolved configuration value together with its provenance.
public record ConfigurationResult<T> : IEquatable<ConfigurationResult<T>>
Type Parameters
TThe value type the caller asked for.
- Inheritance
-
ConfigurationResult<T>
- Implements
- Inherited Members
Remarks
Use this where a fallback must be distinguishable from a real answer — logging why a feature is off, refusing to act on a value the server never confirmed, or surfacing "degraded" in a health check. The plain read remains the right call when the fallback is genuinely as good as the answer.
Properties
Source
Where Value came from.
public required ConfigurationSource Source { get; init; }
Property Value
Stale
True when the value is not known to be current — a stale cache entry, or a fallback standing in for a value the server never confirmed.
public required bool Stale { get; init; }
Property Value
Value
The resolved value. Falls back to the caller's fallback when nothing else is known.
public required T Value { get; init; }
Property Value
- T