如何在 WCF 中使用 ASP.NET 会话? [英] how to use ASP.NET session in WCF?

查看:27
本文介绍了如何在 WCF 中使用 ASP.NET 会话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 WCF 中使用 ASP.NET 会话?或者有没有其他方法可以在 WCF 中使用类似ASP.NET Session"的结构,例如数据存储?

how can I use ASP.NET session in WCF? or is there any alternative way to use "ASP.NET Session" like structure in WCF such as data storage?

推荐答案

尝试使用 WCF 看一下 ASPCompatibityMode,然后打开它并在服务方法中共享会话

Try having a look as ASPCompatibityMode with WCF and you then turn it on and share the session in the service method

这篇关于如何在 WCF 中使用 ASP.NET 会话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆