How to force an IIS hosted WCF or ASMX [webservice] to use session object readonly?

前端 未结 3 1297
星月不相逢
星月不相逢 2020-12-18 04:22

While making my first ajax attempts, I decided also, to go to use IIS hosted WCF now. The strange thing is, that the WCF cannot process several requests parallel for the sam

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-18 04:45

    You can provide a custom session state provider

    See: http://koolsand.blogspot.com/2010/02/why-iis-hosted-wcf-services-does-not.html

    whenever a request contains svc in the path it intimates default session state provider to use readonly lock and not read-write lock. So using readonly lock will allow the next wcf call to be executed concurrently.

提交回复
热议问题