Delivery SDK: strongly-typed fetch, simpler models, fewer footguns
You can now read Delivery views as your own C# types. Keep the flexible fetch you know, but de-serialise per-view into real models with IntelliSense and compile-time safety. No more rummaging through dictionaries.
What’s new
- Typed variant of Fetch: fetch as usual, then read each view with GetContent
(). - Per-view typing: mix multiple handles (e.g. article, navigation, footer) in one request and deserialise each into its own model.
Why it matters
- Fewer runtime surprises: let the compiler and your IDE do the heavy lifting.
- Cleaner contracts: define a C# model instead of magic dictionary keys all over your code base.
- Less boilerplate: no need for custom serialization.
Example: multiple views, multiple types
Fetch several views in one go, then read each as its own model:
Useful links
- Delivery SDK (.NET) repo & README – install, register, usage, and strongly-typed examples. GitHub
- Docs: Delivering data – overview of Delivery API. Enterspeed Documentation | Enterspeed Docs
Thanks to the community
This shipped because a user opened a clear feature request with suggested behaviour. So, keep the issues and PRs coming – we’re listening.