Is it possible to consider the client as a topic?

Is it possible to consider that two clients accessing the same web service method are simultaneously two threads (with all the problems associated with this)?

Is this the same for methods in an asp.net web application?

+3
source share
3 answers

It depends. See My answer to Why are these asynchronous RIA service calls made sequentially on a web server? . It is controlled by two properties ServiceBehaviourAttribute, InstanceContextModeand ConcurrencyMode.


- asp.net , ( - ) , , ( ), .

+1

static , static, . (, ).

, , .

+2

If you are talking about WCF services, the behavior depends on how you configure your service. For more information, you can read this article on MSDN and the ServiceBehaviorAttribute.InstanceContextMode Property

0
source

Source: https://habr.com/ru/post/1794369/


All Articles