.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

< P>? The client can call the operation with synchronous or asynchronous.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -