Skip to main content

Reference

The rest of the docs explain Awaiten one feature at a time, with the coffee shop as the running example. The reference pages are for looking something up: they list everything in one place, keep explanations short, and link back to the feature page that explains the why.

What is here​

PageLook here for
Attribute referenceEvery attribute you put on a container, a module or a domain type, where it goes, its generic and typeof forms, each property with its default, and the enums the attributes take.
Runtime APIWhat you call at run time: the generated Root and Scope, Resolve, TryResolve and ResolveAsync with their overloads, scopes, Owned<T>, external resolvers, registration metadata and the MS.DI bridge.
DiagnosticsEvery AWT diagnostic, with its severity, an example that triggers it and the fix. Your IDE links each id there.
GlossaryThe terms the docs use, such as closing, async-tainted, overridable default or composition root, each in a few sentences.
TroubleshootingProblems that are not a single diagnostic: a generator that does not run, a resolve that throws at run time, a service that resolves to an unexpected implementation, and answers to frequently asked questions.

Find it fast​

You want to knowGo to
Which options a [Singleton], [Scan] or [Decorate] takes, and their defaultsRegistrations
What [Container] and [Module] can be configured withContainers and modules
Which attributes mark injected properties and parametersInjection sites
The values of Lifetime, AsyncSafety, LifetimeSafety, Fallback or ScanAsEnums
Which overload resolves what, and when it throwsResolving
What an AWT id means and how to fix itDiagnostics index
Why the build does not produce a RootTroubleshooting: build
Why a resolve throws although the build passedTroubleshooting: run time
Whether you can register services at run time or run one container per tenantRun-time registration, several containers
Whether resolution is thread-safe, and how to publish with native AOTThread safety, native AOT
How to keep an AWT warning a warning under TreatWarningsAsErrorsWarnings as errors
How the generated code looksWhat Awaiten generates

Elsewhere on the site​

  • Benchmarks compare Awaiten with other .NET containers on build, resolve and per-request workloads.
  • The changelog lists the breaking changes, features and fixes of each release.