Skip to content

Commit f3ec1a8

Browse files
committed
review-1
1 parent 0520d36 commit f3ec1a8

File tree

7 files changed

+27
-27
lines changed

7 files changed

+27
-27
lines changed

learn-pr/aspnetcore/create-aspire-applications/includes/exercise-create-new-aspire-application.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Before you begin working on a new service for your company's latest project, you want to check your system has all the prerequisites for .NET Aspire. The best way to check is create a new .NET Aspire project with a starter template.
1+
Before you begin working on a new service for your company's latest project, you want to check that your system has all the prerequisites for .NET Aspire. The best way to check is to create a new .NET Aspire project with a starter template.
22

3-
In the exercise you'll install all the prerequisites, and then you'll create a new .NET Aspire Starter app. Then you'll see how to add a caching integration using Redis to the app. Finally, you'll test the application and quickly explore the Aspire Dashboard.
3+
In the exercise you install all the prerequisites, and then create a new .NET Aspire Starter app. Then, you see how to add a caching integration using Redis to the app. Finally, you test the application and quickly explore the Aspire Dashboard.
44

55
# [Visual Studio](#tab/visual-studio)
66

@@ -104,7 +104,7 @@ Install the .NET Aspire workload using the .NET CLI:
104104
dotnet workload install aspire
105105
```
106106
107-
You should see a message that the aspire workload is installed.
107+
You should see a message that the "aspire" workload is installed.
108108
109109
```console
110110
Installing Aspire.Hosting.Sdk.Msi.x64 ...... Done
@@ -140,7 +140,7 @@ Now that the prerequisites are installed, let's create a new app.
140140

141141
# [Visual Studio](#tab/visual-studio)
142142

143-
1. Open **Visual Studio**. In the dialog select **Create a new project**.
143+
1. Open **Visual Studio**. In the dialog, select **Create a new project**.
144144
1. In the **Search for templates** box, enter **aspire**.
145145
1. Select **.NET Aspire Starter Application**, and then select **Next**.
146146
1. In the **Solution name** box, enter **AspireTestApp**.
@@ -219,7 +219,7 @@ Now that the prerequisites are installed, let's create a new app.
219219
Distributed application started. Press CTRL-C to stop.
220220
```
221221
222-
1. <kbd>Ctrl</kbd> + click on the listening URL to open this .NET Aspire dashboard. In the above example, the URL is **http://localhost:15157**.
222+
1. <kbd>Ctrl</kbd> + click on the listening URL to open this .NET Aspire dashboard. In the previous example, the URL is **http://localhost:15157**.
223223
224224
---
225225
@@ -237,7 +237,7 @@ Close the browser tabs for the Blazor App and the .NET Aspire dashboard. In Visu
237237
238238
## Add a caching integration to a .NET Aspire project
239239
240-
Now let's add a Redis caching integration to the .NET Aspire project. We'll start with the app host:
240+
Now let's add a Redis caching integration to the .NET Aspire project. We start with the app host:
241241
242242
# [Visual Studio](#tab/visual-studio)
243243
@@ -356,7 +356,7 @@ Now let's run the application to see the caching in action. In Visual Studio:
356356
357357
1. From the menu select **Debug**, and then select **Start Debugging** (Alternatively, press <kbd>F5</kbd>). The solution builds, and the Aspire Dashboard opens in your default web browser.
358358
1. Select the **Endpoint** URL for the **webfrontend** service to view the home page of the application.
359-
1. In the browser, refresh the page a few times. The time on the page doesn't change within the 10 second cache duration.
359+
1. In the browser, refresh the page a few times. The time on the page doesn't change within the 10-second cache duration.
360360
361361
:::image type="content" source="../media/cache-aspire-app.png" alt-text="A screenshot of the updated Aspire Starter template with caching on the home page." lightbox="../media/cache-aspire-app.png":::
362362
@@ -368,4 +368,4 @@ Now let's run the application to see the caching in action. In Visual Studio:
368368
369369
1. Open **Docker Desktop**, and select **Containers/Apps**. You should see the **redis:latest** is no longer running.
370370
371-
You've seen how easy it is to add a new caching integration to an application using .NET Aspire. You added a NuGet package, and then added a few lines of code. .NET Aspire automatically configured the Redis container and the output caching for you.
371+
You just saw how it's easy to add a new caching integration to an application using .NET Aspire. You added a NuGet package, and then added a few lines of code. .NET Aspire automatically configured the Redis container and the output caching for you.

learn-pr/aspnetcore/create-aspire-applications/includes/exercise-integrate-aspire-existing-application.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Now let's explore how to add .NET Aspire to an existing ASP.NET Core web app. Along the way, you'll learn how to add the .NET Aspire stack to an existing ASP.NET Core web app and then run the app. You'll also see how to call microservices from the ASP.NET Core app.
1+
Now let's explore how to add .NET Aspire to an existing ASP.NET Core web app. Along the way, you learn how to add the .NET Aspire stack to an existing ASP.NET Core web app and then run the app. You also see how to call microservices from the ASP.NET Core app.
22

33
## Set up your environment
44

@@ -84,7 +84,7 @@ In Visual Studio:
8484

8585
## Update the orchestration to include the products API
8686

87-
There are many ways to resolve this issue. You could explore the code, work out how the front end is configured, edit the code, or change the **launchSettings.json** or **appsettings.json** files.
87+
There are many ways to resolve this issue. You could explore the code. Work out how the front end is configured, edit the code, or change the **launchSettings.json** or **appsettings.json** files.
8888

8989
With .NET Aspire, you can change the orchestration so that the products API responds on port 5200.
9090

@@ -152,7 +152,7 @@ In Visual Studio:
152152
builder.Build().Run();
153153
```
154154
155-
The above code reorders the projects. The products API is now passed as a project reference to the front end Store web app.
155+
This code reorders the projects. The products API is now passed as a project reference to the front end Store web app.
156156
157157
1. In **Solution Explorer**, open the **Store** project, then open the *appsettings.json* file.
158158
1. Delete the endpoint configuration lines:

learn-pr/aspnetcore/create-aspire-applications/includes/how-add-orchestration-existing-app.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.NET Aspire can be broken down into solutions for three issues that face modern cloud-native apps. These are:
1+
.NET Aspire can be broken down into solutions for these three issues that face modern cloud-native apps:
22

33
1. Managing the complexity of orchestration between microservices.
44
1. Simplifying how your microservices use integrations through NuGet packages.
@@ -25,7 +25,7 @@ Configuration through declarative code is better. Using .NET Aspire, you don't n
2525
.NET Aspire orchestration also supports your development in the following ways:
2626

2727
- **App composition**: .NET Aspire specifies the .NET projects, containers, executables, and cloud resources that make up the application.
28-
- **Service discovery and connection string management**: The app host manages injecting the right connection strings and service discovery information to simplify the developer experience.
28+
- **Service discovery and connection string management**: The app host manages injection of the right connection strings and service discovery information to simplify the developer experience.
2929

3030
## Enlisting an existing app in .NET Aspire orchestration
3131

learn-pr/aspnetcore/create-aspire-applications/includes/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Creating a cloud-native application can be challenging, as it requires in-depth technical knowledge of both coding and infrastructure. Each microservice needs to locate and communicate with others, store data, utilize common services such as caches, and manage messaging queues. Using .NET Aspire simplifies many of these challenges, allowing you to focus more on developing your application’s unique functionality.
22

3-
Imagine you work for an outdoor equipment retailer. You're new to the development team, and want to see how hard it is to add .NET Aspire to the team's current cloud-native app. You believe .NET Aspire can help your team reduce development effort.
3+
Imagine you work for an outdoor equipment retailer. You're new to the development team, and want to see if it's difficult to add .NET Aspire to the team's current cloud-native app. You believe .NET Aspire can help your team reduce development effort.
44

55
In this module, learn how to use the .NET Aspire project templates in Visual Studio to create new cloud-native apps in just a few steps. To ease further development on an existing code base, see how to enlist an existing app in .NET Aspire orchestration.
66

learn-pr/aspnetcore/create-aspire-applications/includes/learn-how-create-new-aspire-application.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ There are two .NET Aspire starter templates currently available:
2121

2222
- **.NET Aspire Starter Application**: This template includes the **AspireSample.AppHost** and **AspireSample.ServiceDefaults** projects, but also includes an example Blazor App **AspireSample.Web** and an API that provides data to it **AspireSample.ApiService**. These projects are preconfigured with service discovery and other basic examples of common .NET Aspire functionality.
2323

24-
Both Aspire templates provide a dashboard to monitor the health of the services and the traffic between them. The dashboard helps improve your local development experience &mdash; as at a glance it gives you an overview of the state and structure of your app.
24+
Both Aspire templates provide a dashboard to monitor the health of the services and the traffic between them. The dashboard helps improve your local development experience&mdash;as at a glance it gives you an overview of the state and structure of your app.
2525

2626
There are also three project templates available:
2727

@@ -88,7 +88,7 @@ Both templates add **AppHost** and **ServiceDefaults** projects. These projects
8888

8989
The **ServiceDefaults** project contains the default configuration for the application. These configurations are reused across all the projects in your solution.
9090

91-
The above solution also includes **Web** and **ApiService** projects. The **Web** project is a Blazor WebAssembly app that has a counter and calls the **ApiService** to get forecast data. The **ApiService** is a simple API that returns forecast data.
91+
This solution also includes **Web** and **ApiService** projects. The **Web** project is a Blazor WebAssembly app that has a counter and calls the **ApiService** to get forecast data. The **ApiService** is a simple API that returns forecast data.
9292

9393
### Walk through the code structure
9494

@@ -108,13 +108,13 @@ builder.AddProject<Projects.AspireStarterSample_Web>("webfrontend")
108108
builder.Build().Run();
109109
```
110110

111-
Walking through the above code, line by line:
111+
Walking through the *Program.cs* code, line by line:
112112

113113
- Create a `builder` variable that's a `IDistributedApplicationBuilder`.
114114
- Create a `cache` variable that's a `IResourceBuilder<RedisResource>`.
115115
- Call `AddProject` with a generic-type parameter containing the project's `IServiceMetadata` details, adding the **AspireSample.ApiService** project to the application model.
116116

117-
This is a fundamental building block of .NET Aspire. The `AddProject` configures service discovery and communication between the projects in your app. The name argument **apiservice** is used to identify the project in the application model, and used later by projects that want to communicate with it.
117+
This method is a fundamental building block of .NET Aspire. `AddProject` configures service discovery and communication between the projects in your app. The name argument **apiservice** is used to identify the project in the application model, and used later by projects that want to communicate with it.
118118

119119
- Calls `AddProject` again, this time adding the **AspireSample.Web** project to the application model. It also chains multiple calls to `WithReference` passing the **cache** and **apiservice** variables.
120120

learn-pr/aspnetcore/create-aspire-applications/includes/summary.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Congratulations! In this module, you learned how to create a brand-new .NET Aspire solution and how to add .NET Aspire to an existing cloud-native application.
22

3-
You also saw how .NET Aspire takes care of many tasks that can be challenging for cloud-native apps, such as resolving a service discovery problem, with only a few lines of code. .NET Aspire also simplifies configuration tasks, and adding common services like databases, messaging, and caching.
3+
You also saw how .NET Aspire takes care of many tasks that can be challenging for cloud-native apps. Such as, resolving a service discovery problem with only a few lines of code. .NET Aspire also simplifies configuration tasks, and adding common services like databases, messaging, and caching.
44

5-
Having completed this module, you can:
5+
After completing this module, you can:
66

77
- Create new cloud-native apps by using the .NET Aspire templates in Visual Studio.
88
- Add the .NET Aspire stack to an existing .NET app for orchestration and simple cloud-native integrations.

learn-pr/aspnetcore/create-aspire-applications/knowledge-check.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ uid: learn.create-aspire-application.knowledge-check
33
title: Module assessment
44
metadata:
55
title: Module assessment
6-
description: "Test what you've learned."
6+
description: "Test what you learned about .NET Aspire."
77
ms.date: 2/6/2024
88
author: camsoper
99
ms.author: casoper
@@ -16,21 +16,21 @@ quiz:
1616
choices:
1717
- content: "Docker Desktop or Podman"
1818
isCorrect: true
19-
explanation: "That's correct! A local container host is required to run a project with .NET Aspire."
19+
explanation: "Correct! A local container host is required to run a project with .NET Aspire."
2020
- content: "Docker Compose"
2121
isCorrect: false
22-
explanation: "That's incorrect. Docker Compose isn't required to run a project with .NET Aspire."
22+
explanation: "Incorrect. Docker Compose isn't required to run a project with .NET Aspire."
2323
- content: "Kubernetes"
2424
isCorrect: false
25-
explanation: "That's incorrect. Kubernetes isn't required to run a project with .NET Aspire."
25+
explanation: "Incorrect. Kubernetes isn't required to run a project with .NET Aspire."
2626
- content: "You enlist your application in the .NET Aspire orchestration. Which of the following changes would you expect to see in your solution?"
2727
choices:
2828
- content: "A new Redis cache container for outbound HTTP requests."
2929
isCorrect: false
30-
explanation: "That's incorrect. A new Redis cache container isn't added to the solution by default. You can choose to add one when creating a new .NET Aspire project."
30+
explanation: "Incorrect. A new Redis cache container isn't added to the solution by default. You can choose to add one when creating a new .NET Aspire project."
3131
- content: "The web app project is set to the new start-up project."
3232
isCorrect: false
33-
explanation: "That's incorrect. The web app project isn't set to the new start-up project. The AppHost project is."
33+
explanation: "Incorrect. The web app project isn't set to the new start-up project. The AppHost project is."
3434
- content: "A new ServiceDefaults project is added to the solution."
3535
isCorrect: true
36-
explanation: "That's correct! When you enlist your application in .NET Aspire orchestration, AppHost and ServiceDefaults projects are added to the solution."
36+
explanation: "Correct! When you enlist your application in .NET Aspire orchestration, AppHost and ServiceDefaults projects are added to the solution."

0 commit comments

Comments
 (0)