Skip to content

Commit

Permalink
Upgraded to preview 9
Browse files Browse the repository at this point in the history
  • Loading branch information
dodyg committed Sep 6, 2019
1 parent 3a72148 commit 8c00d98
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
16 changes: 9 additions & 7 deletions projects/blazor-ss/DependencyInjection/Components/App.razor
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<CascadingAuthenticationState>
<Router AppAssembly="typeof(Startup).Assembly">
<NotFoundContent>
<p>Sorry, there's nothing at this address.</p>
</NotFoundContent>
</Router>
</CascadingAuthenticationState>
<Router AppAssembly="typeof(Program).Assembly">
<Found Context="routeData">
<RouteView RouteData="routeData" />
</Found>
<NotFound>
<h1>Page not found</h1>
<p>Sorry, but there's nothing here!</p>
</NotFound>
</Router>
2 changes: 1 addition & 1 deletion projects/blazor-ss/DependencyInjection/Pages/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<link href="css/site.css" rel="stylesheet" />
</head>
<body>
<app></app>
<app>@(await Html.RenderComponentAsync<App>(RenderMode.ServerPrerendered))</app>
<script src="_framework/blazor.server.js"></script>
</body>
</html>
3 changes: 1 addition & 2 deletions projects/blazor-ss/DependencyInjection/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.DependencyInjection;
using DependencyInjection.Components;
using DependencyInjection.Services;

namespace DependencyInjection
Expand Down Expand Up @@ -40,7 +39,7 @@ public void Configure(IApplicationBuilder app, IHostEnvironment env)
{
endpoints.MapRazorPages();
endpoints.MapFallbackToPage("/Index");
endpoints.MapBlazorHub<App>("app");
endpoints.MapBlazorHub();
});
}
}
Expand Down

0 comments on commit 8c00d98

Please sign in to comment.