WCF线程模型与旧的ASMX服务线程模型不同吗?

时间:2021-10-20 13:17:12

ASMX runs just like you'd access a web page use/reuse IIS thread. What about WCF ? Do I get a different instance & thread(old or new is irrelevant) per request (assume no session) ?

ASMX的运行方式就像访问web页面使用/重用IIS线程一样。WCF呢?是否每个请求都有不同的实例和线程(新或旧是不相关的)(假设没有会话)?

1 个解决方案

#1


1  

WCF is more configurable than ASMX, and may run in hosts other than IIS.

WCF比ASMX更具可配置性,可以在IIS之外的主机上运行。

I think you can assume that threads will come from the thread pool.

我认为您可以假设线程将来自线程池。

Instancing will be controlled by the configured InstanceContextMode of the service.

实例化将由服务的配置的InstanceContextMode控制。

Re-entrancy is controlled by the configured ConcurrencyMode of the service.

可重入性由服务的配置并发模式控制。

#1


1  

WCF is more configurable than ASMX, and may run in hosts other than IIS.

WCF比ASMX更具可配置性,可以在IIS之外的主机上运行。

I think you can assume that threads will come from the thread pool.

我认为您可以假设线程将来自线程池。

Instancing will be controlled by the configured InstanceContextMode of the service.

实例化将由服务的配置的InstanceContextMode控制。

Re-entrancy is controlled by the configured ConcurrencyMode of the service.

可重入性由服务的配置并发模式控制。