@using Microsoft.AspNetCore.Authorization
|
@inject IGlobalLoadingSpinner globalLoadingSpinner
|
<Router AppAssembly="@typeof(App).Assembly">
|
<Found Context="routeData">
|
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
|
</Found>
|
<NotFound>
|
<PageTitle>Not found</PageTitle>
|
<LayoutView Layout="@typeof(MainLayout)">
|
<p role="alert">Sorry, there's nothing at this address.</p>
|
</LayoutView>
|
</NotFound>
|
</Router>
|
@code
|
{
|
protected override void OnInitialized()
|
{
|
base.OnInitialized();
|
}
|
|
protected async override Task OnAfterRenderAsync(bool firstRender)
|
{
|
await base.OnAfterRenderAsync(firstRender);
|
await globalLoadingSpinner.HideLogoAsync();
|
await globalLoadingSpinner.HideAsync();
|
}
|
}
|