Skip to content

Commit 08cc852

Browse files
author
Cam Soper
committed
Review feedback
1 parent 3f5f882 commit 08cc852

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

learn-pr/aspnetcore/configure-dependency-injection/3-exercise-register-services.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### YamlMime:ModuleUnit
2-
uid: learn.configure-dependency-injectio.exercise-register-services
2+
uid: learn.configure-dependency-injection.exercise-register-services
33

44

55
title: Exercise - Register and consume services

learn-pr/aspnetcore/configure-dependency-injection/5-exercise-explore-service-lifetime.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### YamlMime:ModuleUnit
2-
uid: learn.configure-dependency-injectio.exercise-explore-service-lifetime
2+
uid: learn.configure-dependency-injection.exercise-explore-service-lifetime
33

44

55
title: Exercise - Explore service lifetimes

learn-pr/aspnetcore/configure-dependency-injection/includes/4-service-lifetimes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ Use the `AddTransient` method to add a transient service to the service containe
2424

2525
## Services that depend on other services
2626

27-
A service can depend on other services, typically by having its dependencies injected through its constructor. When you register a service that depends on another service, you must take service lifetime into account. For example, a singleton services shouldn't depend on a scoped services because the scoped service is disposed of when the request is completed but a singleton lives for the lifetime of the app. Fortunately, ASP.NET Core will by default check for this misconfiguration and will report a scope validation error when the app starts up so the issue can be quickly identified and addressed.
27+
A service can depend on other services, typically by having its dependencies injected through its constructor. When you register a service that depends on another service, you must take service lifetime into account. For example, a singleton services shouldn't depend on a scoped service because the scoped service is disposed of when the request is completed but a singleton lives for the lifetime of the app. Fortunately, ASP.NET Core will by default check for this misconfiguration and will report a scope validation error when the app starts up so the issue can be quickly identified and addressed.

learn-pr/aspnetcore/configure-dependency-injection/index.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ products:
3131
units:
3232
- learn.configure-dependency-injection.intro
3333
- learn.configure-dependency-injection.understand-dependency-injection
34-
- learn.configure-dependency-injectio.exercise-register-services
34+
- learn.configure-dependency-injection.exercise-register-services
3535
- learn.configure-dependency-injection.service-lifetimes
36-
- learn.configure-dependency-injectio.exercise-explore-service-lifetime
36+
- learn.configure-dependency-injection.exercise-explore-service-lifetime
3737
- learn.configure-dependency-injection.knowledge-check
3838
- learn.configure-dependency-injection.summary
3939
badge:

0 commit comments

Comments
 (0)