Guides¶
Task-oriented answers to "how do I...". Each guide assumes the Concepts and shows a concrete pattern rather than re-explaining the API.
- Testing with replacement dependencies — swap infrastructure for fakes without touching application code.
- Async dependencies — async factories, awaiting cleanup, resolving under an async web framework.
- Third-party clients and factories — wrap SDK clients that have no annotated constructor.
- Typed configuration — turn one config object into many validated, injectable sections.
- Organizing a large container — split registration by role so the composition root stays readable.
- Handling errors at startup — make wiring mistakes fail the process, not a request.
- Releasing resources — dispose scoped resources; handle process-wide ones yourself.