On my current project, we’re using WCF and RESTful services to provide data to a Silverlight application. We have our own IOC/DI framework but we’re also toying with Ninject in that capacity and it was my job this week to hook it up to the service layer. I came across Heinrich’s description of the process but it needs a little tweak to work with RESTful services. Instead of having your NinjectServiceHost class derive from ServiceHost, use WebServiceHost instead. Once that’s done, Ninject works like a champ.
November 28, 2009 at 6:10 am
Brett ,
I was looking at Heinrich’s implementation , and there was no explanation , why he is doing that ?
Is it possible that you can show some code or where can I look at if any sample code already exists ?
Thanks in advance.
November 28, 2009 at 6:10 am
Brett ,
I was looking at Heinrich’s implementation , and there was no explanation , why he is doing that ?
Is it possible that you can show some code or where can I look at if any sample code already exists ?
Thanks in advance.
February 1, 2010 at 9:41 pm
Hi,
Could you please send me your code sample that uses Ninject,WCF and REST?
thanks
February 1, 2010 at 9:41 pm
Hi,
Could you please send me your code sample that uses Ninject,WCF and REST?
thanks