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 85ecb8c commit a19e5e3
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
16 changes: 9 additions & 7 deletions projects/blazor-ss/StartingVariation/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>
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
@using Microsoft.AspNetCore.Components.Forms

@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.JSInterop
@using Microsoft.JSInterop
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.AspNetCore.Components.Authorization
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>
Expand Down
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>
Expand Down
2 changes: 1 addition & 1 deletion projects/blazor-ss/StartingVariation/Pages/Secure.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>
Expand Down
3 changes: 1 addition & 2 deletions projects/blazor-ss/StartingVariation/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 StartingVariation.Components;

namespace StartingVariation
{
Expand Down Expand Up @@ -35,7 +34,7 @@ public void Configure(IApplicationBuilder app, IHostEnvironment env)
{
endpoints.MapRazorPages();
endpoints.MapFallbackToPage("/Admin/Blazor");
endpoints.MapBlazorHub<App>("app");
endpoints.MapBlazorHub();
});
}
}
Expand Down

0 comments on commit a19e5e3

Please sign in to comment.