Is web service instance creates for every request? Can I declare field in web service and be sure, that it will not be intersected for different users?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you mean ASP.NET then the threads are reused so if you declare a variable threadlocal it is still accessible in different requests.
You can use HttpContext.Current.Items for per-request storage.