RateOrigin Enum
Definition
- Namespace
- Bodu.Financial.ExchangeRates
- Assembly
- Bodu.Financial.dll
- Package
- Bodu.Financial 1.0.0
- Source
- RateOrigin.cs
Identifies where a served exchange rate was resolved from, distinguishing a value produced directly by a provider from one served out of a cache.
public enum RateOrigin
- Extension Methods
Fields
Live = 0The rate was resolved directly by a provider rather than served from a cache. For a cache-fronted provider this corresponds to a cache miss that was satisfied by the wrapped inner provider.
Cache = 1The rate was served from a cache without consulting the underlying provider.
Remarks
The value is surfaced through Origin on every RateLookupResult, so a caller can tell a freshly resolved rate from a cached one without inspecting the provider chain.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |