web services - ASP.NET: How often is WebService class instanciated? How to make a persistent object in it? -


A simple question, I could not find any answer in Google.

How often is a web service class instanciated? Is it once a call to web service, is it once (uncontrolled period of time), is it something else once?

Edit

I was hoping that the class is very good but it seems that it is not so.

The issue is, I have a resource that is used in the fulfillment of requests, and this resource is not launching every time an alternative (on the contrary, it would have been an option after loading And very good performance - and the other, and just 'wise'). (No, no one will be disturbed, the resource is not being blocked or nothing else.)

So how do I have an object within the web service, an example in which I can fulfill all the requests Can i use Sorry if there is a clear answer to the question like "Use stable variable." Being an experienced programmer, I have not been presented properly for web programming and still have been struggling with some common concepts.

Are you talking about the client or the server side? , But @ Ferrez's answer relates to the client side.

If we talk about the class obtained from the system. Web. Service. Web service You should think of this as an avatar of every time.

If we talk about the class obtained from IHttpHandler, then you have the option IReusable


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -