Last post Feb 17, 2015 02:17 AM by Shawn - MSFT
Feb 09, 2015 10:53 PM|johnlim35|LINK
Currently, i had a Web Service page (ASMX), which is process a transaction and return status to client calls, the flow are as below:-
1. Client call my page (Request.asmx)
2. Request.asmx process.
3. Request thread.sleep 10 seconds, as waiting 2. to be process into "STATUS" table.
4. A function to query result from "STATUS" table.
5. Return result to client.
Is there any way i can throw the Step 3., 4. and 5. to ASynchronous Worker Thread?
Feb 17, 2015 02:17 AM|Shawn - MSFT|LINK
For this situation, in my opinion, it's recommended that you could take a look at the task based Asynchronous Programming with Async and Await:
About Asynchronous web services call in ASP.NET: