小编Ale*_*apa的帖子

移植到web api 2后,NinjectHttpApplication不起作用

我已将我的Web Api应用程序移植到Web Api 2并安装了ninject web api pacckage.但现在我收到一个错误:

Error activating ModelValidatorProvider using binding from ModelValidatorProvider to NinjectDefaultModelValidatorProvider

A cyclical dependency was detected between the constructors of two services.
Run Code Online (Sandbox Code Playgroud)

.net c# ninject asp.net-web-api2

10
推荐指数
2
解决办法
4068
查看次数

ServiceStack使用多个存储库进行身份验证

我们可以为servicestack设置多个AuthProviders.但他们都应该使用一个用户存储库.有没有办法设置一个基本的auth提供程序和两个不同的存储库用于不同的路由?

.net c# authentication servicestack

2
推荐指数
1
解决办法
262
查看次数