ASP.NET Fire and Forget (One Way) Web Service

后端 未结 2 897
孤独总比滥情好
孤独总比滥情好 2021-01-06 15:44

I\'ve create a regular old ASMX web service in ASP.NET and added SoapDocumentMethod(OneWay = true)] to the function call as I\'ve read this is supposed to make the call Asyn

相关标签:
2条回答
  • 2021-01-06 16:17

    You still have to make the call using the Async method. You should make the call to service.UpdateAccountsAsync() in this case.

    0 讨论(0)
  • 2021-01-06 16:36

    Are you returning a value? The documentation for OneWay states that "fire and forget" web methods cannot return a value or have out parameters.

    http://msdn.microsoft.com/en-us/library/system.web.services.protocols.soapdocumentmethodattribute.oneway(VS.80).aspx

    0 讨论(0)
提交回复
热议问题