0

是否可以在没有 IOC 的情况下运行 Fluent Security?我的应用程序当前不使用 IOC,因此是问题的原因。

4

1 回答 1

2

是的,FluentSecurity 不需要 IoC 容器(它从来没有)。但是,如果您需要替换 FluentSecurity 中的任何内容,或者您​​的策略需要依赖注入,则需要一种方法来为 FluentSecurity 提供这些实例/依赖项。

于 2014-04-21T19:18:05.010 回答