开发者

Can I set maxConnection in WCF RIA?

开发者 https://www.devze.com 2023-01-20 13:55 出处:网络
I\'ve experience with WPF and WCF, with WCF I can set maxConnection to limit maximum connection per service. Now, I\'m moving that application to Silverlight and WCF RIA 开发者_运维百科but I can\'t fi

I've experience with WPF and WCF, with WCF I can set maxConnection to limit maximum connection per service. Now, I'm moving that application to Silverlight and WCF RIA 开发者_运维百科but I can't find that property so it can do only 4 connection parallely.

Anyone know how can I configure WCF RIA to accept more connection?


Have you tried using a service behavior like so:

<serviceBehaviors>
  <behavior name="MyBehavior">
     <serviceThrottling
          maxConcurrentCalls="4"   
          maxConcurrentSessions="4” />
     <serviceMetadata httpGetEnabled="true" />
  <serviceDebug includeExceptionDetailInFaults="false" />
</serviceBehaviors>

Setting the MaxConcurrentSessions value may be the solution.

Hope this helps, indyfromoz

0

精彩评论

暂无评论...
验证码 换一张
取 消