Repository navigation
Release v24.5.0
The availability engine now lives in Cratis.Arc.Availability, so declaring and deciding availability are one package. The engine does not depend on ASP.NET.
Added
- The availability engine in
Cratis.Arc.Availability: gate expressions, the evaluator, audiences, context values and the manifest, with their documentation. The decisions are unchanged: three values, unknown denies, once-per-request values and the same reasons. (#3979) (#3975) arc.WithAvailability()registers availability in one call: the gates, the engine, an in-memory audience source by default, and startup validation that discovers the gated parts and verifies the declared blocks once.AddAvailabilityregisters the engine alone, for hosts that are not web applications.
Changed
Cratis.Arc.Availabilityno longer depends onCratis.Choreography. The engine types moved from theCratis.Choreography.Availabilitynamespace toCratis.Arc.Availability.ChoreographyContextValueSourceis nowAvailabilityContextValueSource.
Fixed
- Availability configured with
AddArcAvailabilitywas discarded whenAddCratis()ran first: gates were lost and parts failed open, and the request context was no longer shared per request.