Skip to content

Configure wcf services using svc file

remogloor edited this page Feb 18, 2013 · 8 revisions

Open the svc file and add a Factory attribute to the ServiceHost configuration. Here you can specify the factory that shall be used for the service. There are three options:

  • Ninject.Extensions.Wcf.NinjectServiceHostFactory is used for ordinary services
  • Ninject.Extensions.Wcf.NinjectWebServiceHostFactory is used for REST services
  • Ninject.Extensions.Wcf.NinjectDataServiceHostFactory is used for data services