Skip to content

Release v2.7.0

Choose a tag to compare

@github-actions github-actions released this 12 Nov 21:07
5b364f3

Choreography now ships an availability engine in Cratis.Choreography.Availability that decides, per request, whether a part of an application is available. It has no dependency on Arc.

Added

  • Availability engine that evaluates for, when and with gates combined with and, or and parentheses in authored order, with three outcomes (available, unavailable, unknown), where unknown and absence deny and a failure is an exception, never a denial (#220)
  • Audience abstraction (IAudienceSource) with effective audiences as the union of tenant, user and system grants, grants for undeclared audiences carried and reported but never matching, and a change subscription for reactive invalidation, plus in-memory implementations (#220)
  • Request-scoped context values declared at application, module, feature and slice level, resolved lazily once per request with nearest-level override, cycle detection, required and optional values, and providers for read models, literals, expressions, the host and code (#222)
  • Environment switch that grants every declared audience, off by default and refused outside local and test environments (#223)
  • Documentation for the availability engine