我们什么时候应该使用aspNetCompatibilityEnabled [英] When should we use aspNetCompatibilityEnabled
问题描述
任何人都可以解释我们何时应该在WCF中使用aspNetCompatibilityEnabled =true以及它有什么好处。
我得到了一些信息,即当这个标志为真时,WCF服务请求将使用ASP.Net域上下文,如会话和上下文......
任何人都可以告诉我何时使用此以及何时使用不是
Quote:在这种模式下,WCF服务的工作方式与ASMX类似服务。也就是说,此模式支持所有现有的ASP.NET功能。
参考 - ASP.NET兼容模式 [ ^ ]
Can any one explain when should we use aspNetCompatibilityEnabled="true" in WCF and what are its benefits.
I got some information i.e. when this flag is true, WCF service requests will use the ASP.Net domain context like session and context......
Can any one tell me when to use this and when to not
Quote:In this mode, WCF services work similarly as ASMX services. That is, all of the existing ASP.NET features are supported in this mode.
Refer - ASP.NET Compatibility Mode[^]
这篇关于我们什么时候应该使用aspNetCompatibilityEnabled的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!