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?
Well, Ninject.Web is just code - go look at it.
Things like this InRequestScopewill only work if you use asp.net compatibility mode.
InRequestScope
, WCF - , , , Ninject.Wcf , Ninject.Web, , NinjectHttpApplication.
NinjectHttpApplication
:
Source: https://habr.com/ru/post/1790007/More articles:Preventing negative numbers for Age without using client side validation - javaКак синхронизировать клон Git -Svn через cron? - git-svnSecure storage of user credentials in the database for PHP web application - phphow to save user credentials on a server to execute queries in the background - designWrapping words in tags using XSLT - xmlWindows "Документы и настройки" на других языках - windowsColdFusion security by checking ARGUMENTS.TargetPage in Application.onRequestStart? - securityCan I name different classes (with different methods and types) that perform similar functions? - c #Print a new line in a Google application - pythonSet selected value for dropdown using javascript - javascriptAll Articles