Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

第六章 DI 与生命周期

本章讲解依赖注入与服务生命周期管理。

本章小节

小节内容
ServiceCollection 与服务注册容器基础
依赖注入模式inject、手动注册
IHostedService 后台服务启动/关闭钩子
模块系统与 inject 宏rust-dix 模块

下一步

从 ServiceCollection 与服务注册 开始。