Class BrokeredRegisteredClientOriginRegistry
Phase 9e. implementation backed by
the cross-context broker call to direct-vm://identity-cors-check.
Registered in the HTTP-facade child container when the host root has no Core registry
(i.e. the .tpkg boot path of ).
In test-fixture mode the Core registry is reachable via DI and the bridge is bypassed.
Design notes:
returns an empty set — the snapshot lives
in Core and is never materialised on the Http side. Diagnostics callers must hit
Core directly via the management API. is a no-op — Core invalidates its own snapshot on
application mutations; the broker call always sees the freshest data.No client-side cache (per Phase 9 §3 decision: MVP without cache; add TTL +
invalidation broadcast in Phase 10).
public sealed class BrokeredRegisteredClientOriginRegistry : IRegisteredClientOriginRegistry
Inheritance
Implements
Methods
GetAllowedOriginsAsync(CancellationToken)
Returns the current snapshot of allowed origins. Useful for diagnostics and tests.
public ValueTask<ImmutableHashSet<string>> GetAllowedOriginsAsync(CancellationToken ct = default)
IsAllowedAsync(string?, CancellationToken)
Returns true if origin matches at least one registered client's
public ValueTask<bool> IsAllowedAsync(string? origin, CancellationToken ct = default)