Hi Joseph,
Thank you for using Microsoft NewsGroup Service. Based on your description,
you'd like to make a certain WebMethod to execute in different thread when
it is called by different requests? Is my understanding of your problem
correct?
Generally the WebMethod in ASP.NET webservice are all executed in a certain
Thread. The thread is not a ThreadPoolThread. So if you check the ThreadID
each time you called the webmethod, the ID is the same one. Also, there
isn't any attribute or property that can directly change or set this
feature. As for your situation, you want the second webmethod (called by
another stateful webmethod) run in multithread, would you please provide me
more information about the requirement of your program. Maybe we can look
for some other means to deal with it.
Also if you have any other questions on it , please feel free to let me
know.
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)