开发者

Pass httpcontext to WCF via Castle Windsor

开发者 https://www.devze.com 2023-04-07 19:18 出处:网络
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 W

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号