Ninject InRequestScope missing

百般思念 提交于 2019-12-04 22:14:24
Remo Gloor

Most likely you reference a no web version of Ninject. Replace it with the normal version and you will have the InRequestScope extension method.

InRequestScope is available as extension method in Ninject.Web.Common. So if installed earlier through Nuget (Ninject package) now we might need to install additional nuget package Ninject.Web.Common

using Ninject.Web.Common;    // that's most likely all you need
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!