Repository navigation
Release v22.184.0
A live query subscription can now be ended when the recorded state its policy decided from changes, for example when an asset's plan is downgraded.
Added
StateAwareEmissionGuard<TState>, the emission-guard counterpart ofStateAwareAuthorizationPolicy<TState>. It re-reads the recorded state on each guarded emission and ends the subscription when the caller is no longer entitled. It fails closed: a missing key, a missing instance, a failing read or a failing decision all end the subscription, reported throughOnDeniedwith the sameStateDenialReason. (#3766)