You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same issue - can't find anything about how to use NinjectServiceHostFactory. readme.md states: Ninject.Extensions.Wcf.NinjectWebServiceHostFactory is used for REST services ReleaseNotes.md states that as of version 3.2.0: Added: Endpoints can now be configured in the app config. Rest service and mex bindings can now be used together with NinjectServiceHostFactory. Marked NinjectWebServiceHostFactory obsolete
So which should be used?
I am trying to figure out how to expose my service as a REST service and not use the now obsolete NinjectWebServiceHostFactory.
In the example Ninject.Extensions.Wcf/src/Examples/WcfRestService/Global.asax.cs it uses the obsolete NinjectWebServiceHostFactory.
So when I change it to the code below I can no longer send application/json requests to it. It complains and says it is expecting xml.
How do I use the NinjectServiceHostFactory and create my route as a REST route.
Should NinjectWebServiceHostFactory really be obsolete?
The text was updated successfully, but these errors were encountered: