Fix up recommendation re scope validation (#19719)

pull/19725/head
Kirk Larkin 2020-08-31 05:59:37 +01:00 committed by GitHub
parent 8946593614
commit 90313718d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -503,7 +503,7 @@ The factory method of single service, such as the second argument to [AddSinglet
[!code-csharp[](dependency-injection/samples/3.x/AntiPattern3/Startup.cs?name=snippet)]
* Disposable transient services are captured by the container for disposal. This can turn into a memory leak if resolved from the top level container.
* Enable scope validation to make sure the app doesn't have scoped services that capture singletons. For more information, see [Scope validation](#scope-validation).
* Enable scope validation to make sure the app doesn't have singletons that capture scoped services. For more information, see [Scope validation](#scope-validation).
Like all sets of recommendations, you may encounter situations where ignoring a recommendation is required. Exceptions are rare, mostly special cases within the framework itself.