我们有一个WCF REST服务,该服务将数据从服务器发送到Web客户端。这些是web.config设置
<binding name="Binding_Service_Name"
closeTimeout="00:01:30" openTimeout="00:01:30" receiveTimeout="00:01:30"
sendTimeout="00:01:30" allowCookies="false" bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard" maxBufferSize="1048576"
maxBufferPoolSize="524288" maxReceivedMessageSize="1048576" messageEncoding="Text"
textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
<client>
<endpoint address="https://FQDN//RESTService.svc"
binding="basicHttpBinding" bindingConfiguration="Binding_Service_Name"
contract="Contract"
name="BindingName" />
</client>
<services>
<service behaviorConfiguration="RESTServiceBehavior"
name="Name">
<endpoint address="" behaviorConfiguration="webBehavior" binding="customBinding"
bindingConfiguration="jsonpBinding" contract="contract">
</endpoint>
<!--<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> jsonpBinding-->
</service>
<serviceBehaviors>
<behavior name="Bco.Sitecore.UI.RESTApi.RESTServiceBehavior">
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<!--HTTPS-->
<!--<serviceMetadata httpsGetEnabled="true"/>-->
<!--HTTP-->
<serviceMetadata httpGetEnabled="true" />
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true"/>
<serviceThrottling maxConcurrentCalls="1000" maxConcurrentInstances="1000" maxConcurrentSessions="1000" />
</behavior>
</serviceBehaviors>
web.config中的兼容模式 - aspnetcompatibilitymode = true
休息服务已阅读/写入httpsession。
当网站有并发电话时,ASP.NET会序列化这些呼叫。我该怎么做才能将它们作为并发电话?我们从较旧的代码中掌握了这项休息服务的会话/写信,这是我们不可能绕过会话的读/写入
会感谢解决这个问题的解决方案。谢谢!
当应用程序使用会话状态时,对应用程序的调用总是序列化的。