Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Docs/pages/00-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var cup = shop.Resolve<Cup>(); // a fresh cup, wired and ready
## Where to go next

- [Getting started](./getting-started) builds your first container end to end.
- [Principles & the composition root](./principles) is the design behind the mechanics; read it before the feature pages.
- [Design principles & the composition root](./design-principles) is the design behind the mechanics; read it before the feature pages.
- [Lifetimes](./registration/lifetimes) explains singleton, scoped, and transient.
- [Async initialization](./async-initialization) covers the headline feature.
- [Diagnostics](./diagnostics) lists every compile-time check.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
title: Principles & the composition root
title: Design principles & the composition root
sidebar_label: Design principles
sidebar_position: 2
---

# Principles & the composition root
# Design principles & the composition root

The rest of these docs teach the *mechanics*: how to register services, resolve them, and keep their lifetimes honest. This page is about the *design* those mechanics serve. Awaiten enforces the mechanics for you (lifetimes, cycles, async ordering) and turns the ones it can see into build errors. It cannot enforce the design. That part is on you, and it is what this page is for.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ dotnet add package Awaiten
Full documentation lives at [docs.testably.org/Awaiten](https://docs.testably.org/Awaiten).

- [Getting started](https://docs.testably.org/Awaiten/getting-started)
- [Principles & the composition root](https://docs.testably.org/Awaiten/principles)
- [Design principles & the composition root](https://docs.testably.org/Awaiten/design-principles)
- Registration: [lifetimes](https://docs.testably.org/Awaiten/registration/lifetimes), [factories and instances](https://docs.testably.org/Awaiten/registration/factories-and-instances), [decorators](https://docs.testably.org/Awaiten/registration/decorators), [composites](https://docs.testably.org/Awaiten/registration/composites), [keyed services](https://docs.testably.org/Awaiten/registration/keyed-services), [open generics](https://docs.testably.org/Awaiten/registration/open-generics), [scanning](https://docs.testably.org/Awaiten/registration/scanning), [modules](https://docs.testably.org/Awaiten/registration/modules)
- Resolution: [resolving services](https://docs.testably.org/Awaiten/resolution/resolving-services), [relationships](https://docs.testably.org/Awaiten/resolution/relationships), [collections](https://docs.testably.org/Awaiten/resolution/collections), [keyed dictionaries](https://docs.testably.org/Awaiten/resolution/keyed-dictionaries), [property injection](https://docs.testably.org/Awaiten/resolution/property-injection), [runtime arguments](https://docs.testably.org/Awaiten/resolution/runtime-arguments), [context-aware factories](https://docs.testably.org/Awaiten/resolution/context-aware-factories)
- [Async initialization](https://docs.testably.org/Awaiten/async-initialization)
Expand Down
Loading