chobo2
chobo2

Reputation: 85845

What happened To Ninject's InRequestScope

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

Answers (1)

Darin Dimitrov
Darin Dimitrov

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

Related Questions