Skip to content

Commit a286c99

Browse files
authored
Merge pull request #1 from MicrosoftDocs/main
Merge main into working branch
2 parents 134c61b + 5f102b6 commit a286c99

File tree

290 files changed

+1791
-1417
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

290 files changed

+1791
-1417
lines changed

.openpublishing.publish.config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
"branch": "solution",
6767
"branch_mapping": {}
6868
},
69+
{
70+
"path_to_root": "aspnetcore-snippets",
71+
"url": "https://github.com/MicrosoftDocs/mslearn-aspnetcore-snippets",
72+
"branch": "main",
73+
"branch_mapping": {}
74+
},
6975
{
7076
"path_to_root": "active-directory-b2c-msal-node-sign-in-sign-out-webapp",
7177
"url": "https://github.com/Azure-Samples/active-directory-b2c-msal-node-sign-in-sign-out-webapp",

.openpublishing.redirection.json

Lines changed: 93 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -34357,57 +34357,97 @@
3435734357
{
3435834358
"source_path": "learn-pr/azure/implement-firewall-load-balancer/7-summary.yml",
3435934359
"redirect_url": "https://learn.microsoft.com/azure-stack/hci/manage/sdn-technical-reference",
34360-
"redirect_document_id": false
34361-
},
34362-
{
34363-
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/index.md",
34364-
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34365-
"redirect_document_id": false
34366-
},
34367-
{
34368-
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/5-determine-service-endpoint-services.md",
34369-
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34370-
"redirect_document_id": false
34371-
},
34372-
{
34373-
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/4-determine-service-endpoint-uses.md",
34374-
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34375-
"redirect_document_id": false
34376-
},
34377-
{
34378-
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/6-identify-private-link-uses.md",
34379-
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34380-
"redirect_document_id": false
34381-
},
34382-
{
34383-
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/3-identify-user-defined-routes.md",
34384-
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34385-
"redirect_document_id": false
34386-
},
34387-
{
34388-
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/7-simulation-routing.md",
34389-
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34390-
"redirect_document_id": false
34391-
},
34392-
{
34393-
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/1-introduction.md",
34394-
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34395-
"redirect_document_id": false
34396-
},
34397-
{
34398-
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/8-knowledge-check.md",
34399-
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34400-
"redirect_document_id": false
34401-
},
34402-
{
34403-
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/2-review-system-routes.md",
34404-
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34405-
"redirect_document_id": false
34406-
},
34407-
{
34408-
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/9-summary-resources.md",
34409-
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34410-
"redirect_document_id": false
34411-
}
34412-
]
34360+
"redirect_document_id": false
34361+
},
34362+
{
34363+
"source_path": "learn-pr/azure/introduction-code-to-cloud/1-introduction.yml",
34364+
"redirect_url": "https://learn.microsoft.com/azure/static-web-apps/",
34365+
"redirect_document_id": false
34366+
},
34367+
{
34368+
"source_path": "learn-pr/azure/introduction-code-to-cloud/2-what-is-code-to-cloud.yml",
34369+
"redirect_url": "https://learn.microsoft.com/azure/static-web-apps/",
34370+
"redirect_document_id": false
34371+
},
34372+
{
34373+
"source_path": "learn-pr/azure/introduction-code-to-cloud/3-exercise-deploy-to-code-to-cloud-using-starter-template.yml",
34374+
"redirect_url": "https://learn.microsoft.com/azure/static-web-apps/",
34375+
"redirect_document_id": false
34376+
},
34377+
{
34378+
"source_path": "learn-pr/azure/introduction-code-to-cloud/4-exercise-bring-your-own-repository-to-code-to-cloud.yml",
34379+
"redirect_url": "https://learn.microsoft.com/azure/static-web-apps/",
34380+
"redirect_document_id": false
34381+
},
34382+
{
34383+
"source_path": "learn-pr/azure/introduction-code-to-cloud/5-manage-your-app-components-on-code-to-cloud.yml",
34384+
"redirect_url": "https://learn.microsoft.com/azure/static-web-apps/",
34385+
"redirect_document_id": false
34386+
},
34387+
{
34388+
"source_path": "learn-pr/azure/introduction-code-to-cloud/6-summary.yml",
34389+
"redirect_url": "https://learn.microsoft.com/azure/static-web-apps/",
34390+
"redirect_document_id": false
34391+
},
34392+
{
34393+
"source_path": "learn-pr/azure/introduction-code-to-cloud/7-knowledge-check.yml",
34394+
"redirect_url": "https://learn.microsoft.com/azure/static-web-apps/",
34395+
"redirect_document_id": false
34396+
},
34397+
{
34398+
"source_path": "learn-pr/azure/introduction-code-to-cloud/index.yml",
34399+
"redirect_url": "https://learn.microsoft.com/azure/static-web-apps/",
34400+
"redirect_document_id": false
34401+
},
34402+
{
34403+
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/index.md",
34404+
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34405+
"redirect_document_id": false
34406+
},
34407+
{
34408+
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/5-determine-service-endpoint-services.md",
34409+
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34410+
"redirect_document_id": false
34411+
},
34412+
{
34413+
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/4-determine-service-endpoint-uses.md",
34414+
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34415+
"redirect_document_id": false
34416+
},
34417+
{
34418+
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/6-identify-private-link-uses.md",
34419+
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34420+
"redirect_document_id": false
34421+
},
34422+
{
34423+
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/3-identify-user-defined-routes.md",
34424+
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34425+
"redirect_document_id": false
34426+
},
34427+
{
34428+
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/7-simulation-routing.md",
34429+
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34430+
"redirect_document_id": false
34431+
},
34432+
{
34433+
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/1-introduction.md",
34434+
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34435+
"redirect_document_id": false
34436+
},
34437+
{
34438+
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/8-knowledge-check.md",
34439+
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34440+
"redirect_document_id": false
34441+
},
34442+
{
34443+
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/2-review-system-routes.md",
34444+
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34445+
"redirect_document_id": false
34446+
},
34447+
{
34448+
"source_path": "learn-pr/wwl-azure/configure-network-routing-endpoints/9-summary-resources.md",
34449+
"redirect_url": "/training/modules/control-network-traffic-flow-with-routes/",
34450+
"redirect_document_id": false
34451+
}
34452+
]
3441334453
}

learn-pr/achievements.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4117,8 +4117,13 @@ achievements:
41174117
title: Manage data assets in the classic Microsoft Purview Data Catalog
41184118
summary: This module teaches you how to use the classic Microsoft Purview Data Catalog to manage your scanned data assets. How to curate a business glossary, and how to browse assets across your entire data estate.
41194119
iconUrl: /learn/achievements/manage-data-assets-in-microsoft-purview-data-catalog.svg
4120+
- uid: learn.introduction-code-to-cloud.badge
4121+
type: badge
4122+
title: Introduction to Code to Cloud
4123+
summary: This module covers provides an Introduction to Code to Cloud, a service that allows you to seamlessly deploy your complex micro-architecture solutions to Microsoft Azure.
4124+
iconUrl: /learn/achievements/generic-badge.svg
41204125
- uid: learn.wwl.configure-network-routing-endpoints.badge
41214126
type: badge
41224127
title: Configure network routing and endpoints
41234128
summary: Learn how to configure network routes, including endpoints and private links.
4124-
iconUrl: /training/achievements/network-routing-endpoints-configure.svg
4129+
iconUrl: /training/achievements/network-routing-endpoints-configure.svg
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.configure-dependency-injection.intro
3+
title: Introduction
4+
metadata:
5+
title: Introduction
6+
description: Introduction to ASP.NET Core dependency injection.
7+
ms.date: 11/7/2024
8+
author: camsoper
9+
ms.author: casoper
10+
ms.topic: unit
11+
durationInMinutes: 1
12+
content: |
13+
[!include[](includes/1-introduction.md)]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.configure-dependency-injection.understand-dependency-injection
3+
4+
title: Understand dependency injection
5+
6+
metadata:
7+
title: Understand dependency injection
8+
9+
description: This unit explains what dependency injection is and how it works in an ASP.NET Core app.
10+
ms.date: 11/7/2024
11+
author: camsoper
12+
ms.author: casoper
13+
ms.topic: unit
14+
ai-usage: ai-assisted
15+
durationInMinutes: 10
16+
content: |
17+
[!include[](includes/2-understand-dependency-injection.md)]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.configure-dependency-injection.exercise-register-services
3+
4+
5+
title: Exercise - Register and consume services
6+
7+
metadata:
8+
title: Exercise - Register and consume services
9+
10+
description: This unit is an exercise that demonstrates how to register and consume services in an ASP.NET Core app.
11+
ms.date: 11/7/2024
12+
author: camsoper
13+
ms.author: casoper
14+
ms.topic: unit
15+
durationInMinutes: 10
16+
content: |
17+
[!include[](includes/3-exercise-register-services.md)]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.configure-dependency-injection.service-lifetimes
3+
4+
title: Service lifetimes
5+
6+
metadata:
7+
title: Service lifetimes
8+
9+
description: This unit explains what service lifetimes are in an ASP.NET Core app.
10+
ms.date: 11/7/2024
11+
author: camsoper
12+
ms.author: casoper
13+
ms.topic: unit
14+
durationInMinutes: 5
15+
content: |
16+
[!include[](includes/4-service-lifetimes.md)]
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.configure-dependency-injection.exercise-explore-service-lifetime
3+
4+
5+
title: Exercise - Explore service lifetimes
6+
7+
metadata:
8+
title: Exercise - Explore service lifetimes
9+
10+
description: This unit is an exercise that explores configuring service lifetimes an ASP.NET Core app.
11+
ms.date: 11/7/2024
12+
author: camsoper
13+
ms.author: casoper
14+
ms.topic: unit
15+
durationInMinutes: 10
16+
content: |
17+
[!include[](includes/5-exercise-explore-service-lifetime.md)]
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.configure-dependency-injection.knowledge-check
3+
title: Knowledge check
4+
metadata:
5+
title: Knowledge check
6+
description: Knowledge check for ASP.NET Core dependency injection.
7+
ms.date: 11/7/2024
8+
author: CamSoper
9+
ms.author: casoper
10+
ms.topic: unit
11+
durationInMinutes: 5
12+
quiz:
13+
title: Check your understanding
14+
questions:
15+
- content: "Which of the following statements is true regarding dependency injection?"
16+
choices:
17+
- content: "Dependency injection is a design pattern that allows you to loosely couple your app's dependencies."
18+
isCorrect: false
19+
explanation: "Incorrect. This is a true statement, but there's a better answer."
20+
- content: "ASP.NET Core comes with a built-in service container that supports dependency injection."
21+
isCorrect: false
22+
explanation: "Incorrect. This is a true statement, but there's a better answer."
23+
- content: "ASP.NET Core's service container supports three service lifetimes: transient, scoped, and singleton."
24+
isCorrect: false
25+
explanation: "Incorrect. This is a true statement, but there's a better answer."
26+
- content: "All of the above."
27+
isCorrect: true
28+
explanation: "Correct! All of the above statements are true."
29+
- content: "What is the behavior of a service registered with the **singleton** service lifetime?"
30+
choices:
31+
- content: "A new instance of the service is created for each request."
32+
isCorrect: false
33+
explanation: "Incorrect. This is the behavior of a scoped service."
34+
- content: "A single instance of the service is created for the lifetime of the app."
35+
isCorrect: true
36+
explanation: "Correct! Services registered with the singleton lifetime are created once and reused for the lifetime of the app."
37+
- content: "A new instance of the service is created each time an instance is requested."
38+
isCorrect: false
39+
explanation: "Incorrect. This is the behavior of a transient service."
40+
- content: "None of the above."
41+
isCorrect: false
42+
explanation: "Incorrect. One of the above choices is correct."
43+
- content: "What is the behavior of a service registered with the **scoped** service lifetime?"
44+
choices:
45+
- content: "A new instance of the service is created for the current scope, like the current request."
46+
isCorrect: true
47+
explanation: "Correct! ASP.NET Core creates a scope for each request, so scoped services can be reused within the scope of the request."
48+
- content: "A single instance of the service is created for the lifetime of the app."
49+
isCorrect: false
50+
explanation: "Incorrect. This is the behavior of a singleton service."
51+
- content: "A new instance of the service is created each time an instance is requested."
52+
isCorrect: false
53+
explanation: "Incorrect. This is the behavior of a transient service."
54+
- content: "None of the above."
55+
isCorrect: false
56+
explanation: "Incorrect. One of the above choices is correct."
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.configure-dependency-injection.summary
3+
title: Summary
4+
metadata:
5+
title: Summary
6+
description: This unit is the summary of the module.
7+
ms.date: 11/7/2024
8+
author: camsoper
9+
ms.author: casoper
10+
ms.topic: unit
11+
durationInMinutes: 3
12+
content: |
13+
[!include[](includes/7-summary.md)]

0 commit comments

Comments
 (0)