How to implement nInject DI into WCF service .NET 4.0

Saturday, July 5, 2014

Can any one share me how to implement nInject DI into WCF service.


Latest packages are this -



<package id="Ninject" version="3.2.2.0" targetFramework="net40" />
<package id="Ninject.Extensions.Wcf" version="3.2.1.0" targetFramework="net40" />


I tried to achieve using above two packages but not worked.


Can any one share me how i should use above package and implement WCF service - DI and here, versions are 3.2.2.0,3.2.1.1.


Tried using - http://ift.tt/1mQXsfd link approach. But, here also i faced an issue, unable to resolve reference for - NinjectWcfApplication It looks like, there are some changes into WCF extension package so, above link not worked.


Please help me how I could achieve WCF service to have DI with nInject?







http://ift.tt/1jSV8Vc