dotnet / dotnet/docs

Ambiguous paragraph

Open
#34,173 4 comments 0 reactions 0 assignees View on GitHub
dotnet-architecture/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
15h 21m
Merged PRs (30d)
370

Description

Hi,
I'm just learning dependency injection, and found this paragraph...

"Once the Build method has been called, the services registered with the dependency injection container will be immutable and no longer can be updated or modified"

...to be ambiguous. When it says "the services registered....will be immutable", does that mean that the registrations are immutable (can't register any more services), or the services themselves are immutable (no data within the service can be altered)?

i.e. saying "services registered" could be referring to the list of services on the register, or the services themselves. Please make this clearer. e.g. "the register (of services) is immutable", or "the services (which you have registered) will be immutable".

thanks,
Donald.

---
#### Document Details

⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*

* ID: 4cec3f9b-ac99-9196-f294-4b14f03bab30
* Version Independent ID: 9f52a735-5d76-d278-39ba-38d2f55daa5c
* Content: [Dependency Injection](https://learn.microsoft.com/en-us/dotnet/architecture/maui/dependency-injection)
* Content Source: [docs/architecture/maui/dependency-injection.md](https://github.com/dotnet/docs/blob/main/docs/architecture/maui/dependency-injection.md)
* Product: **dotnet-architecture**
* GitHub Login: @michaelstonis
* Microsoft Alias: **nanil**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.