Updated ASP.NET Core steps in Exercise 3 to configure debugging
This commit is contained in:
Родитель
c3c84d5022
Коммит
cb25072f7a
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 15 KiB |
|
@ -1,5 +1,14 @@
|
|||
# Demo 3 - Full stack architecture
|
||||
|
||||
**Please note**: Make sure that, in the **BlazorInsider.App** project properties, the two following settings are defined in the **Debug** tab:
|
||||
|
||||
- **Launch browser** must be checked
|
||||
- **App URL** must be set to **http://localhost:5000**
|
||||
|
||||
![](Images/DebugConfiguration.png)
|
||||
|
||||
Otherwise, the browser won't be automatically launched when you start the debugging.
|
||||
|
||||
1. The goal of this demo is to put together all the pieces you have demonstrated so far.
|
||||
2. Open the **BlazorInsider.sln** solution with Visual Studio
|
||||
3. Show to the audience the 3 different projects and explain them:
|
||||
|
@ -87,7 +96,7 @@ The worker will retrieve the full order, it will change its status and then it w
|
|||
27. As last step of the demo, let's highlight the flexibility of the solution. Let's say, for example, that we want to run this application on a Windows server, with the worker running as a Windows service.
|
||||
28. Right click on the **BlazorInsider.Worker** project and choose **Manage NuGet Packages**.
|
||||
29. Show to the audience that the project includes a NuGet package called **Microsoft.Extensions.Hosting.Windows**, which enables the required features to expose the worker as a Windows Service.
|
||||
30. Now double click on the **Program.cs** file. Add **UseWindowService()** in the **CreateHostBuilder()** method. This is how it should look like.
|
||||
30. Now double click on the **Program.cs** file. Add **UseWindowService()** in the **CreateHostBuilder()** method. This is how it should look like.
|
||||
|
||||
```csharp
|
||||
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
||||
|
|
Загрузка…
Ссылка в новой задаче