DOCUMENTAZIONE
Documentazione
Le guide che ti portano da un progetto vuoto a un container di servizi avviato, più le note per il passaggio tra le major version.
Guide
Quickstart Add the packages, generate the service container plugin and boot your first container. Leggi la guida → Configure your project How the code generator, the generated plugin and the service container fit together. Leggi la guida → Your first service Register a class as a service and resolve it from the container. Leggi la guida → Service lifetime The singleton and transient lifetimes, and when to reach for each. Leggi la guida → Exposing services for abstractions Register an implementation under the interface it implements. Leggi la guida → Preloading services Instantiate a singleton eagerly, right after the container boots. Leggi la guida → Parameters Resolve constructor arguments from the container parameters map. Leggi la guida → Service maps Register services that live in a third party package you cannot annotate. Leggi la guida → Service registration at runtime Register a service with a factory while the app is running. Leggi la guida → Sub containers with additional services Scope services and parameters to a single derived container with enhance. Leggi la guida → Tagged services Group services under a symbol and resolve them all at once. Leggi la guida →
Aggiornamenti
Upgrade from v2 to v3 Build configuration and generator annotation changes for v3. Leggi la guida → Upgrade from v3 to v4 Removed annotations, the new cache directory and build configuration for v4. Leggi la guida → Upgrade from v4 to v5 The move to the plugin based architecture, contracts package and pub workspaces. Leggi la guida → Upgrade from v5 to v6 Dependency-only update; no code changes required. Leggi la guida →