You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/blazor/get-started.md
+41-15Lines changed: 41 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Get started with Blazor by building a Blazor app with the tooling o
5
5
monikerRange: '>= aspnetcore-3.1'
6
6
ms.author: riande
7
7
ms.custom: mvc
8
-
ms.date: 04/30/2020
8
+
ms.date: 05/02/2020
9
9
no-loc: [Blazor, SignalR]
10
10
uid: blazor/get-started
11
11
---
@@ -25,7 +25,7 @@ To get started with Blazor, follow the guidance for your choice of tooling:
25
25
26
26
For information on the two Blazor hosting models, *Blazor WebAssembly* and *Blazor Server*, see <xref:blazor/hosting-models>.
27
27
28
-
1. Install the [Blazor WebAssembly](xref:blazor/hosting-models#blazor-webassembly) preview template by running the following command:
28
+
1. Install the Blazor WebAssembly Preview template by running the following command:
29
29
30
30
```dotnetcli
31
31
dotnet new -i Microsoft.AspNetCore.Components.WebAssembly.Templates::3.2.0-rc1.20223.4
@@ -50,9 +50,11 @@ To get started with Blazor, follow the guidance for your choice of tooling:
50
50
```dotnetcli
51
51
dotnet new -i Microsoft.AspNetCore.Components.WebAssembly.Templates::3.2.0-rc1.20223.4
52
52
```
53
+
54
+
For information on the two Blazor hosting models, *Blazor WebAssembly* and *Blazor Server*, see <xref:blazor/hosting-models>.
53
55
54
56
> [!NOTE]
55
-
> The [.NET Core SDK version 3.1.201 or later](https://dotnet.microsoft.com/download/dotnet-core/3.1) is **required** to use the 3.2 Preview 4 Blazor WebAssembly template. Confirm the installed .NET Core SDK version by running `dotnet --version` in a command shell.
57
+
> The [.NET Core SDK version 3.1.201 or later](https://dotnet.microsoft.com/download/dotnet-core/3.1) is **required** to use the 3.2 Preview Blazor WebAssembly template. Confirm the installed .NET Core SDK version by running `dotnet --version` in a command shell.
56
58
57
59
1. Install [Visual Studio Code](https://code.visualstudio.com/).
58
60
@@ -70,8 +72,6 @@ To get started with Blazor, follow the guidance for your choice of tooling:
70
72
dotnet new blazorwasm -o WebApplication1
71
73
```
72
74
73
-
For information on the two Blazor hosting models, *Blazor Server* and *Blazor WebAssembly*, see <xref:blazor/hosting-models>.
74
-
75
75
1. Open the *WebApplication1* folder in Visual Studio Code.
76
76
77
77
1. The IDE requests that you add assets to build and debug the project. Select **Yes**.
@@ -84,38 +84,66 @@ To get started with Blazor, follow the guidance for your choice of tooling:
84
84
85
85
# [Visual Studio for Mac](#tab/visual-studio-mac)
86
86
87
-
Blazor Server is supported in Visual Studio for Mac. Blazor WebAssembly isn't supported at this time. To build Blazor WebAssembly apps on macOS, follow the guidance on the **.NET Core CLI** tab.
87
+
Blazor Server is supported in Visual Studio for Mac. Blazor WebAssembly isn't supported at this time. To create Blazor WebAssembly apps on macOS, follow the guidance on the **.NET Core CLI** tab. For information on the two Blazor hosting models, *Blazor WebAssembly* and *Blazor Server*, see <xref:blazor/hosting-models>.
88
88
89
89
1. Install [Visual Studio for Mac](https://visualstudio.microsoft.com/vs/mac/).
90
90
91
-
1. Select **File** > **New Solution** or create a **New Project**.
91
+
1. Select **File** > **New Solution** or create a **New** project from the **Start Window**.
92
92
93
-
1. In the sidebar, select **Web and Console** > **App**.
93
+
1. In the sidebar, select **.NET Core** > **App**.
94
94
95
95
1. Select the **Blazor Server App** template. Select **Next**.
96
96
97
-
For information on the Blazor Server hosting model, see <xref:blazor/hosting-models>.
97
+
1. Confirm the following configurations:
98
98
99
-
1. Confirm that the **Target Framework** is set to **.NET Core 3.1** and select **Next**.
99
+
***Target Framework** set to **.NET Core 3.1**.
100
+
***Authentication** set to **No Authentication**.
101
+
102
+
Select **Next**.
100
103
101
104
1. In the **Project Name** field, name the app `WebApplication1`. Select **Create**.
102
105
103
-
1. Select **Run** > **Run Without Debugging** to run the app *without the debugger*. Run the app with **Start Debugging** or the Run (▶) button to run the app *with the debugger*.
106
+
1. Select **Run** > **Start Without Debugging** to run the app *without the debugger*. Debugging isn't supported at this time.
107
+
108
+
<!-- HOLD FOR 8.6 GA
109
+
110
+
1. Select **File** > **New Solution** or create a **New** project from the **Start Window**.
111
+
112
+
1. In the sidebar, select **Web and Console** > **App**.
113
+
114
+
1. For a Blazor WebAssembly experience, choose the **Blazor WebAssembly App** template. For a Blazor Server experience, choose the **Blazor Server App** template. Select **Next**.
115
+
116
+
For information on the two Blazor hosting models, *Blazor WebAssembly* and *Blazor Server*, see <xref:blazor/hosting-models>.
117
+
118
+
1. Confirm the following configurations:
119
+
120
+
* **Target Framework** set to **.NET Core 3.1**.
121
+
* **Authentication** set to **No Authentication**.
122
+
123
+
Select **Next**.
124
+
125
+
1. In the **Project Name** field, name the app `WebApplication1`. Select **Create**.
126
+
127
+
1. Select **Run** > **Start Without Debugging** to run the app *without the debugger*. Run the app with **Run** > **Start Debugging** or the Run (▶) button to run the app *with the debugger*.
128
+
129
+
-->
104
130
105
131
If a prompt appears to trust the development certificate, trust the certificate and continue. The user and keychain passwords are required to trust the certificate.
106
132
107
133
# [.NET Core CLI](#tab/netcore-cli/)
108
134
109
135
1. Install the [.NET Core 3.1 SDK](https://dotnet.microsoft.com/download/dotnet-core/3.1).
110
136
111
-
1. Optionally install the [Blazor WebAssembly](xref:blazor/hosting-models#blazor-webassembly) preview template by running the following command:
137
+
1. Optionally install the Blazor WebAssembly preview template by running the following command:
112
138
113
139
```dotnetcli
114
140
dotnet new -i Microsoft.AspNetCore.Components.WebAssembly.Templates::3.2.0-rc1.20223.4
115
141
```
142
+
143
+
For information on the two Blazor hosting models, *Blazor WebAssembly* and *Blazor Server*, see <xref:blazor/hosting-models>.
116
144
117
145
> [!NOTE]
118
-
> The [.NET Core SDK version 3.1.201 or later](https://dotnet.microsoft.com/download/dotnet-core/3.1) is **required** to use the 3.2 Preview 4 Blazor WebAssembly template. Confirm the installed .NET Core SDK version by running `dotnet --version` in a command shell.
146
+
> The [.NET Core SDK version 3.1.201 or later](https://dotnet.microsoft.com/download/dotnet-core/3.1) is **required** to use the 3.2 Preview Blazor WebAssembly template. Confirm the installed .NET Core SDK version by running `dotnet --version` in a command shell.
119
147
120
148
1. For a Blazor Server experience, execute the following commands in a command shell:
121
149
@@ -133,8 +161,6 @@ If a prompt appears to trust the development certificate, trust the certificate
133
161
dotnet run
134
162
```
135
163
136
-
For information on the two Blazor hosting models, *Blazor Server* and *Blazor WebAssembly*, see <xref:blazor/hosting-models>.
137
-
138
164
1. In a browser, navigate to `https://localhost:5001`.
Copy file name to clipboardExpand all lines: aspnetcore/blazor/routing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -224,7 +224,7 @@ The following component navigates to the app's `Counter` component when the butt
224
224
The following component handles a location changed event. The `HandleLocationChanged` method is unhooked when `Dispose` is called by the framework. Unhooking the method permits garbage collection of the component.
Copy file name to clipboardExpand all lines: aspnetcore/grpc/comparison.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ uid: grpc/comparison
12
12
13
13
By [James Newton-King](https://twitter.com/jamesnk)
14
14
15
-
This article explains how [gRPC services](https://grpc.io/docs/guides/) compare to HTTP APIs (including ASP.NET Core [web APIs](xref:web-api/index)). The technology used to provide an API for your app is an important choice, and gRPC offers unique benefits compared to HTTP APIs. This article discusses the strengths and weaknesses of gRPC and recommends scenarios for using gRPC over other technologies.
15
+
This article explains how [gRPC services](https://grpc.io/docs/guides/) compare to HTTP APIs with JSON (including ASP.NET Core [web APIs](xref:web-api/index)). The technology used to provide an API for your app is an important choice, and gRPC offers unique benefits compared to HTTP APIs. This article discusses the strengths and weaknesses of gRPC and recommends scenarios for using gRPC over other technologies.
16
16
17
17
## High-level comparison
18
18
@@ -40,6 +40,8 @@ gRPC is designed for HTTP/2, a major revision of HTTP that provides significant
40
40
* Binary framing and compression. HTTP/2 protocol is compact and efficient both in sending and receiving.
41
41
* Multiplexing of multiple HTTP/2 calls over a single TCP connection. Multiplexing eliminates [head-of-line blocking](https://en.wikipedia.org/wiki/Head-of-line_blocking).
42
42
43
+
HTTP/2 is not exclusive to gRPC. Many request types, including HTTP APIs with JSON, can use HTTP/2 and benefit from its performance improvements.
44
+
43
45
### Code generation
44
46
45
47
All gRPC frameworks provide first-class support for code generation. A core file to gRPC development is the [.proto file](https://developers.google.com/protocol-buffers/docs/proto3), which defines the contract of gRPC services and messages. From this file gRPC frameworks will code generate a service base class, messages, and a complete client.
Copy file name to clipboardExpand all lines: aspnetcore/security/blazor/server/index.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Learn how to secure Blazor Server apps as ASP.NET Core applications
5
5
monikerRange: '>= aspnetcore-3.1'
6
6
ms.author: riande
7
7
ms.custom: mvc
8
-
ms.date: 04/27/2020
8
+
ms.date: 05/02/2020
9
9
no-loc: [Blazor, SignalR]
10
10
uid: security/blazor/server/index
11
11
---
@@ -93,3 +93,7 @@ Using the `-o|--output` option, the command uses the value provided for the `{AP
93
93
For more information, see the [dotnet new](/dotnet/core/tools/dotnet-new) command in the .NET Core Guide.
94
94
95
95
---
96
+
97
+
## Secure an existing app
98
+
99
+
Blazor Server apps are configured for security in the same manner as ASP.NET Core apps. For more information, see the articles under <xref:security/index>.
> The query string is used on browsers when connecting with WebSockets and Server-Sent Events due to browser API limitations. When using HTTPS, query string values are secured by the TLS connection. However, many servers log query string values. For more information, see [Security considerations in ASP.NET Core SignalR](xref:signalr/security). SignalR uses headers to transmit tokens in environments which support them (such as the .NET and Java clients).
0 commit comments