You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
915 B
35 lines
915 B
@using Microsoft.AspNetCore.Components.Routing
|
|
@using Microsoft.AspNetCore.Components.WebAssembly.Services
|
|
@using Microsoft.Extensions.Logging
|
|
@using System.Reflection
|
|
|
|
@inject LazyAssemblyLoader AssemblyLoader
|
|
@inject ILogger<App> Logger
|
|
|
|
<Router AppAssembly="@typeof(App).Assembly" AdditionalAssemblies="@additionalAssemblies">
|
|
<Found Context="routeData">
|
|
<RouteView RouteData="@routeData" />
|
|
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
|
|
</Found>
|
|
<NotFound>
|
|
<PageTitle>Not found</PageTitle>
|
|
<LayoutView>
|
|
<p role="alert">Sorry, there's nothing at this address.</p>
|
|
</LayoutView>
|
|
</NotFound>
|
|
</Router>
|
|
|
|
@code {
|
|
private List<Assembly> additionalAssemblies;
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await Task.CompletedTask;
|
|
|
|
additionalAssemblies = new List<Assembly>
|
|
{
|
|
typeof(Common.Types.Bootstrapper).Assembly,
|
|
typeof(UITest.Bootstrap).Assembly
|
|
};
|
|
}
|
|
} |