MAUIverse MAUIverse

What's New in Shiny Mediator 6

Shiny Mediator 6 raises the minimum to .NET 8 and .NET 10, which brings better trimming and AOT readiness. The biggest change is HTTP client generation: the source generator now produces handlers, contracts, JSON converters and DI registration, where before you wired up handlers and serialization yourself. That’s a breaking change, so the post includes migration tips, and DirectHttpRequest has been removed in favour of the [Http] attribute.

The new features most relevant to app developers:

  • [Throttle]: a debounce for event handlers, handy for search-as-you-type or sensor data, where only the latest value matters
  • [MiddlewareOrder]: explicit ordering instead of relying on DI registration order, fully opt-in
  • HTTP response cache middleware: respects CacheControl MaxAge headers from your API automatically
  • PublishToBackground and Server-Sent Events: a child scope for fire-and-forget events, and IAsyncEnumerable<T> streams wired to SSE endpoints

Fixes include a redesigned EventStream that was dropping events under load. If you already use Shiny Mediator in a MAUI app, it’s a quick read before you upgrade.

View Source →

← Back to Community Feed

}