Permalink
Browse files

Upgraded to Ninject 2

  • Loading branch information...
1 parent 282bb26 commit 4cfa8880815199b8ac06d874cef5a83738d2c383 @SteveSanderson committed Mar 24, 2010
Binary file not shown.
Binary file not shown.
@@ -35,9 +35,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\ExternalAssemblies\DateTimeEnglishParser.dll</HintPath>
</Reference>
- <Reference Include="Ninject.Core, Version=1.0.0.82, Culture=neutral, PublicKeyToken=c7192dc5380945e7, processorArchitecture=MSIL">
+ <Reference Include="Ninject, Version=2.0.0.0, Culture=neutral, PublicKeyToken=c7192dc5380945e7, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\ExternalAssemblies\Ninject.Core.dll</HintPath>
+ <HintPath>..\ExternalAssemblies\Ninject.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
@@ -4,12 +4,12 @@
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
-using Ninject.Core;
using JobAds.Domain.Abstractions;
using JobAds.Domain.Repositories;
using JobAds.Domain.Services;
using JobAds.Controllers;
-using Ninject.Core.Behavior;
+using Ninject;
+using Ninject.Modules;
namespace JobAds
{
@@ -24,11 +24,10 @@ internal class NinjectControllerFactory : DefaultControllerFactory
: null;
}
- private class JobAdsDependencies : StandardModule
+ private class JobAdsDependencies : NinjectModule
{
public override void Load()
{
- //Bind<JobsController>().To<JobsController>().Using<SingletonBehavior>();
Bind<IJobAdRepository>().To<DbJobAdRepository>();
Bind<ISearchSuggestor>().To<GoogleSearchSuggestor>();
}

0 comments on commit 4cfa888

Please sign in to comment.