App.razorVersion:
1.0.0
Dependencies
Services:AdminSettingsService
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
App.razor is the root component of the Blazor Server application; it loads CSS, JS, and handles cascading authentication to the app.
App.razor1.0.0
protected override async Task OnInitializedAsync()
{
await AdminSettingsService.InitializeCurrentAdminSettingsAsync();
}
<body>
//Authentication is provided by the Microsoft Entra Id service registered in Program.cs
<CascadingAuthenticationState>
<Routes @rendermode="InteractiveServer" /> //Setting the render mode of the Blazor app
</CascadingAuthenticationState>
//JS scripts
</body>
