Home > Programming > WCF, Ninject and REST

WCF, Ninject and REST

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.

Categories: Programming Tags:
  1. November 28th, 2009 at 06:10 | #1

    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.

  2. Developer
    February 1st, 2010 at 21:41 | #2

    Hi,
    Could you please send me your code sample that uses Ninject,WCF and REST?

    thanks

  1. No trackbacks yet.