开发者

ASP.NET an asynchronous WebService ? Is it really asynchronous?

I invoke a server side method (by jQuery's $.ajax) which invokes an asynchronous WebService long-running method. The problem is, that while that long-running method is not complete, I can't get the progress of that method for my progress bar. Why server waits until the method completes ?

[Solved] !

ThreadPool.QueueUserWorkItem(state => service.MyMethod());

that code makes that my webserver does开发者_StackOverflow中文版n't wait for method complete, the progress bar is being updated. Only 1 code line.....


This is almost the same answer - to a different question.

The solution is to add "Web Gardern", or "Web Pool", means more working pools and threads, because every pool is thread safe and must wait to end until the next one call.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜