Using Ninject with WCF Services in Appdomain Web Application?

As far as I understand, if you want to use the WCF-Ninject extension, it assumes that you host your WCF services in your own AppDomain.

I already use the Ninject.Web extension and asp.net compatibility mode to access the membership provider and session.

Is there a way to use my Ninject with my WCF services that are hosted in the same AppDomain as my web application?

+3
source share
1 answer

Well, Ninject.Web is just code - go look at it.

Things like this InRequestScopewill only work if you use asp.net compatibility mode.

, WCF - , , , Ninject.Wcf , Ninject.Web, , NinjectHttpApplication.

:

  • Ninject.Wcf
  • , //epect
  • ninject ,
+2

Source: https://habr.com/ru/post/1790007/


All Articles