WCF - 很想知道请求排队 [英] WCF - Wondering about Request Queueing

查看:130
本文介绍了WCF - 很想知道请求排队的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个快速简单地询问有关在WCF请求。是否WCF自动排队请求服务(该服务是一个单身)当多个用户请求相同的过程,即可以说我有一个函数,需要一段时间才能完成,两个用户拨打电话本功能,自动执行WCF排队的请求,以便当第一请求完成它然后开始处理下一



〜只是想

解决方案

合同上的服务行为属性定义了会话,实例和并发处理。请参见 http://msdn.microsoft.com/en-us/library/ms731193。 ASPX 了解更多详情。



基本上你可以配置它(1)一次处理或(2)在同一时间多个请求。<一个请求/ p>

I have a quick simply question about requests in WCF. Does WCF automatically queue requests to a service(the service being a singleton) when multiple users request the same process, ie lets say I have a function that takes a while to complete, and two users make a call to this function, does WCF automatically queue the requests so that when the first request is finished it then starts processing the next?

~Just Wondering

解决方案

The service behavior attribute on the contract defines how sessions, instances and concurrency are handled. See http://msdn.microsoft.com/en-us/library/ms731193.aspx for more details.

Basically you can configure it (1) handle one request at a time or (2) multiple requests at the same time.

这篇关于WCF - 很想知道请求排队的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆