webservice 线程调用 返回值
[WebMethod]
public string getInfo()
{
System.Threading.ThreadStart start = new System.Threading.ThreadStart(test);
System.Threading.Thread th = new System.Threading.Thread(start);
th.ApartmentState = System.Threading.ApartmentState.STA;
th.Start();
return obj;
}
void test()
{
string result=DateTime.Now.ToString();//详细代码实现
}