Development¶
Build and run¶
Most pages use @rendermode InteractiveServer.
Configure the ECS APIs¶
Set the options sections consumed by the typed clients:
EcsConfigurationApi(configurations + versions)EcsPolicyApi(policies + compliance)EcsMultiTenancyApi(tenants - disabled by default)
Default base URL is https://localhost:5001/; an optional API key header is supported.
Authentication¶
EcsAdminAuthentication is disabled by default, in which case AdminDevelopmentAuthenticationHandler provides dev auth. When enabled, OIDC is used and AdminApiAccessTokenHandler attaches access tokens to ECS API calls.
Adding an admin area¶
Add a page under Pages/, a typed API client method, and DTOs under Models/. Reuse VersionDiffPanel for version comparisons (ConfigurationVersionDiff.BuildLines() is unit-tested by ConfigurationVersionDiffTests).
Testing¶
MSTest + bUnit. Today only ConfigurationVersionDiffTests is a real domain test (SampleTest is a placeholder). Add page/client tests as you extend the MFE. See repo status for packaging gaps.