Skip to content

UseAgileConfig扩展函数应该添加一个注入了HostBuilderContext的重载 #198

@iray1024

Description

@iray1024

当使用通用主机构建宿主程序时,是没办法和Web主机一样直接获取到 IConfiguration 对象的实例的,微软的做法是在 IHostBuilder 的扩展函数的配置参数中注入 HostBuilderContext 的实例,就可以通过该对象获取 IConfiguration
Snipaste_2024-11-11_11-11-55

希望可以添加一个注入了 HostBuilderContext 的重载

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions