How a Web Service Request is Handled in ASP.Net

When a client makes a web service request, how does asp.net assign a service class instance to handle this request?

Is there a new instance of the service class created for each request, or is it merging, or is there one instance used to handle all requests?

+3
source share
1 answer

For classic ASMX services, you are sure to get a new instance with each request, just like an ASPX request. For the WCF service (.SVC), you have more options, for example, starting as a singleton.

singleton , ASMX . , -. , App Pool reset , IIS ASP.NET.

, , Windows WCF, . localhost , . ASMX WCF . , , , IIS . , WCF Windows, , - .

+1

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


All Articles