How is a web service request handled in ASP.Net -


when client makes web service request, how asp.net assign instance of service class handle request?

is new instance of service class created per request or there pooling happening or there singleton instance used handle requests?

for classic asmx services new instance each request, aspx request. wcf service (.svc) have more options, such running singleton.

if interested in doing work singleton , pooling can use asmx service lightweight proxy pass parameters , forth. implementation of service singleton lives app pool web site. need account app pool being reset how iis manages asp.net sites.

what can run windows service wcf service running. service listen localhost on endpoint accessible same machine. can have asmx service call wcf service locally. allow ensure state alive long when iis restarts app pool. naturally, can change security wcf windows service allow access remotely password if want allow multiple web services use same service host purpose of improved resource usage.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -