开发者

ninject mvc and wcf

Ninject has extentions for mvc and wcf but in our case mvc application is hosting wcf as well. How do u go about using both, looks like both extention provides base class for httpapplication(global.aspx),

What is the correct way of using it?

At this moment looks like i need to grab pieces out of wcf extention and put it in mvc extention to get both 开发者_JAVA技巧working.


The extensions just provide shortcuts for functionality already in Ninject. i.e., the MVC application registers it's own controller factory, something you can do manually. Can you just do the WCF stuff manually in your application class?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜