开发者

Can I set maxConnection in WCF RIA?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜