Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iray1024 opened this issue Nov 11, 2024 · 1 comment

Comments

@iray1024
Copy link

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

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

@kklldog
Copy link
Collaborator

kklldog commented Nov 12, 2024

不是太清楚你的需求是干嘛?或者你干脆自己PR上来吧,反正代码很简单。
这个项目 https://github.com/kklldog/AgileConfig_Client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants