.net - Is there any way for an ASP.NET webservice method to use async methods? -
I have a simple method that reads from DB with a sync call (Assknet) webservice (.asmx ExecuteReader) and gives results. Method is a way to optimize the Thread Pool usage without changing the sign (ie by calling an async call (BeginExecuteReader)?
The intention is not to block a thread pool thread, while the database operation on; it does not intend to speed things up to several actions in parallel.
in fact, See, the answer is yes .
Although you start * and end * methods If you create an async web method, then .NET will create only one campaign in WSDL. It is clear if you think about it - a Java client is a IAsyncResult
Comments
Post a Comment