Pass httpcontext to WCF via Castle Windsor
We are trying to inject the current http context (so we can get authentication info, e.g the forms authentication etc...)from our asp.net mvc web site into our service constructors. Our services are WCF and we are using Castle Windsor at the client and service layers. Is it possible to do this entirel开发者_高级运维y from configuration? Does any one know the best way to go about this?
EDIT: our services layer will run on a different physical tier to the web site
I think you can use something like HttpContextBase/HttpContextWrapper as dicusssed here : Castle.Windsor and HttpContextWrapper
精彩评论