【发布时间】:2009-10-09 02:41:58
【问题描述】:
我已经在 ASP.NET 中创建了一个常规的旧 ASMX Web 服务,并将 SoapDocumentMethod(OneWay = true)] 添加到函数调用中,因为我读过这应该使调用异步。但是我在我的代码中调用它并且它绝对不会使调用异步,我的页面只是坐在那里等待函数完成工作。什么给了?
[SoapDocumentMethod(OneWay = true)]
[WebMethod(EnableSession = true)]
public void UpdateAccounts()
{
//do work
}
//call the function
GlobalServices service = new GlobalServices();
service .UpdateAccounts()
【问题讨论】:
标签: c# asp.net asynchronous service