IServiceCollection 扩展方法
public static class ServiceCollectionExtensions
Inheritance System.Object 🡒 ServiceCollectionExtensions
| Methods | |
|---|---|
| AddApqCfg(this IServiceCollection, Action<CfgBuilder,IServiceProvider>) | 添加 Apq.Cfg 配置服务(支持访问 IServiceProvider) |
| AddApqCfg(this IServiceCollection, Action<CfgBuilder>) | 添加 Apq.Cfg 配置服务 |
| AddApqCfg(this IServiceCollection, Func<IServiceProvider,ICfgRoot>) | 添加 Apq.Cfg 配置服务(使用工厂方法) |
| AddApqCfg<TOptions>(this IServiceCollection, Action<CfgBuilder>, string) | 添加 Apq.Cfg 配置服务并绑定强类型配置 |
| ConfigureApqCfg<TOptions>(this IServiceCollection, string) | 配置强类型选项(从 ICfgRoot 绑定),支持嵌套对象和集合 |
| ConfigureApqCfg<TOptions>(this IServiceCollection, string, Action<TOptions>) | 配置强类型选项并启用配置变更监听 |