Castle Windsor IoC Property Injection simple how-to

前端 未结 1 1541
面向向阳花
面向向阳花 2021-01-18 09:54

OK I think there is maybe too much information about Castle Windsor because looking for these keywords gives me examples of everything, and frankly I don\'t underst

相关标签:
1条回答
  • 2021-01-18 10:46

    Both constructor and property injection work when the root object is resolved by the container. In this case, yourAccountController would be the root object that Windsor would need to create.

    In order to wire this up, you should use a controller factory. Once the controller is registered and resolved by the container, everything should work as you expect.

    0 讨论(0)
提交回复
热议问题