PageMethods和会话 [英] PageMethods and Session
问题描述
我已搜查高和低此解决方案。任何见解将是非常美联社preciated。
I have searched high and low for this solution. Any insights will be highly appreciated.
现状:当有多个PageMethod的电话在一个页面,每一个方法调用的持有从而阻断会话对象上的锁。该PageMethod的呼叫可以异步只能用 @Page
进行指令转向假|只读
The Situation: When there multiple PageMethod calls in a single page, each of the method call holds a lock on the Session object thus blocking. The PageMethod calls can be made asynchronous only with @Page
directive is turned to False|ReadOnly
结果:当页
指令是默认的(读/写),但会议没有在网页上的任何地方使用时,通话不会被阻止。任何阅读或在页面级别的块写入到会话的PageMethod的电话。
Findings: When the Page
directive is default (read/write) but the session is not used anywhere on the page, the calls are not blocked. Any read or write in to the session at the page level blocks the pagemethod calls.
问题:制作 =的EnableSessionState只读
在 @Page
指令是很严格,不希望走这条路线。
The Problem: Making EnableSessionState=ReadOnly
at the @Page
directive is very restrictive and don't want to take that route.
能否调用PageMethod的不阻止?并且仍然访问会话? (可能不会写,但仅仅读)
Can the pagemethod calls not block? and still access the session? (may be not write but just read)
推荐答案
答在异步设计会话的详细
这篇关于PageMethods和会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!