Skip to content

Conversation

@joshtrichards
Copy link
Member

@joshtrichards joshtrichards commented Nov 6, 2025

Couple code example errors fixed in DI chapter:

  • Fixed service registration example (AuthorMappers referenced when AuthorMapper was intended)
  • Fixed Request / IRequest example (wasn't runnable and didn't use interface)
  • Fixed class APIController example (shown calling a parent class constructor, but wasn't extending any class)

Also:

  • Added a DI introduction sections (Intro & Basics)
  • Added some new inline code comments
  • Added a constructor property promotion example
  • Added additional code line highlights to examples
  • Clarified Controller injection section is about injecting at the method-level (versus constructor level)
  • Renamed chapter from "DI" to "Containers / DI"

☑️ Resolves

🖼️ Screenshots

image

Couple code example errors fixed in DI chapter:

- `AuthorMappers` referenced when `AuthorMapper` was intended
- Class `APIController`, which is shown calling a parent class constructor, wasn't extending a class 

Also:

- Added a DI introduction section
- Added some new inline code comments

Signed-off-by: Josh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants