Inject App Settings using Windsor

后端 未结 2 1028
情深已故
情深已故 2020-12-31 07:52

How can I inject the value of an appSettings entry (from app.config or web.config) into a service using the Windsor container? If I wanted to inject the value of a Windsor p

2条回答
  •  北荒
    北荒 (楼主)
    2020-12-31 08:35

    I wrote a post about a similar case a couple of months ago. It uses a SubDependencyResolver to inject the appropriate parameters. In your case, you can just change DynamicConfigurationSettings for ConfigurationManager.

提交回复
热议问题