We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
当使用通用主机构建宿主程序时,是没办法和Web主机一样直接获取到 IConfiguration 对象的实例的,微软的做法是在 IHostBuilder 的扩展函数的配置参数中注入 HostBuilderContext 的实例,就可以通过该对象获取 IConfiguration
IConfiguration
IHostBuilder
HostBuilderContext
希望可以添加一个注入了 HostBuilderContext 的重载
The text was updated successfully, but these errors were encountered:
不是太清楚你的需求是干嘛?或者你干脆自己PR上来吧,反正代码很简单。 这个项目 https://github.com/kklldog/AgileConfig_Client
Sorry, something went wrong.
No branches or pull requests
当使用通用主机构建宿主程序时,是没办法和Web主机一样直接获取到
IConfiguration
对象的实例的,微软的做法是在IHostBuilder
的扩展函数的配置参数中注入HostBuilderContext
的实例,就可以通过该对象获取IConfiguration
希望可以添加一个注入了
HostBuilderContext
的重载The text was updated successfully, but these errors were encountered: