Reputation: 85845
I started a new project today and went to nuget to get ninject.
I downloaded the Ninject MVC3 plugin that should download everything else I need.
I then took some old code from a different project and noticed that InRequestScope seems to be gone.
Was it taken out or am I missing something?
Edit
I think I found it under "Ninject.Web.Common"
Upvotes: 3
Views: 2370
Reputation: 1039298
This extension method is defined inside the RequestScopeExtensionMethod
class inside the Ninject.Web.Common
assembly [which is in a NuGet package with the same name]. This assembly (/package) is automatically referenced when you install the Ninject.NVC3
NuGet package. In order to use it, you need to bring the Ninject.Web.Common
namespace in scope:
using Ninject.Web.Common;
Upvotes: 12