在处理Silverlight应用程序的WCF服务多个请求

在处理Silverlight应用程序的WCF服务多个请求

本文介绍了在处理Silverlight应用程序的WCF服务多个请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我已经装饰具有以下属性WCF服务的一些操作

I have a number of operations in my WCF Service that have been decorated with the following attributes

[OperationContract的(AsyncPattern = TRUE)]

[OperationContract(AsyncPattern = true)]

IAsyncResult的BeginSomething1(...)

IAsyncResult BeginSomething1(...)

响应EndSomething1()

Response EndSomething1()

[OperationContract的(AsyncPattern = TRUE)]

[OperationContract(AsyncPattern = true)]

IAsyncResult的BeginSomething2(...)

IAsyncResult BeginSomething2(...)

响应EndSomething2()

Response EndSomething2()

我注意到,无论我如何配置我的WCF服务我永远不能

I notice that no matter how I configure my WCF service I can never get

BeginSomething1和BeginSomething2可以同时运行起来。

BeginSomething1 and BeginSomething2 to be running simultaneously together.

这是说,我叫BeginSomething1在客户第一,BeginSomething2不会出现在服务器EndSomething1完成,直到运行。

That is say I call BeginSomething1 at the client first, BeginSomething2 does not appear to run at the server until EndSomething1 completes.

我的WCF服务是由具有AspNetCompatibilityRequirements设置为true,所以我只是想知道,如果这事做吧......

My WCF service is made to have AspNetCompatibilityRequirements set to true so Im just wondering if this has something to do with it...

这可能需要一些实质性的工作,如果我需要关闭这个功能,以便只是希望,如果有一个解决方法吗?

It may require some substantial work if I am required to turn this off so was just hoping if there was a workaround?

感谢

推荐答案

你的问题的夫妇:


  • 你有什么WCF节流配置为上的服务?

  • 在客户端,你链接的请求?请确保你不等待第一个电话完成。

这篇关于在处理Silverlight应用程序的WCF服务多个请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 06:18