Skip to content

Commit 058647a

Browse files
committed
update to latest version
1 parent ab4ffe7 commit 058647a

24 files changed

+117
-758
lines changed
31.5 KB
Loading

samples/ServerSideBlazor/App.razor

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
@*
2-
The Router component displays whichever component has a @page
3-
directive matching the current URI.
4-
*@
5-
<Router AppAssembly="typeof(Startup).Assembly" />
1+
<Router AppAssembly="@typeof(Program).Assembly">
2+
<Found Context="routeData">
3+
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
4+
</Found>
5+
<NotFound>
6+
<LayoutView Layout="@typeof(MainLayout)">
7+
<p>Sorry, there's nothing at this address.</p>
8+
</LayoutView>
9+
</NotFound>
10+
</Router>

samples/ServerSideBlazor/ChatClient.cs

Lines changed: 0 additions & 224 deletions
This file was deleted.

samples/ServerSideBlazor/Data/WeatherForecast.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (c) Microsoft. All rights reserved.
2-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3-
41
using System;
52

63
namespace ServerSideBlazor.Data
@@ -11,7 +8,7 @@ public class WeatherForecast
118

129
public int TemperatureC { get; set; }
1310

14-
public int TemperatureF { get; set; }
11+
public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
1512

1613
public string Summary { get; set; }
1714
}

samples/ServerSideBlazor/Data/WeatherForecastService.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Copyright (c) Microsoft. All rights reserved.
2-
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3-
41
using System;
52
using System.Linq;
63
using System.Threading.Tasks;
@@ -9,7 +6,7 @@ namespace ServerSideBlazor.Data
96
{
107
public class WeatherForecastService
118
{
12-
private static string[] Summaries = new[]
9+
private static readonly string[] Summaries = new[]
1310
{
1411
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
1512
};

samples/ServerSideBlazor/Hub/ChatHub.cs

Lines changed: 0 additions & 82 deletions
This file was deleted.

0 commit comments

Comments
 (0)