asp.net mvc - MVC.net. Sequence of asynch calls of controller methods -


I work on MVC.net application. I request asynch my controller through jQuery. Below you can see these requests in intelligence (all of them have been removed in a specific sequence).

num result protocol host URL

2929 200 HTTP somesite.com:1936 / DynamicTables / SaveCurrentRowsState

2930 200 HTTP somesite.com:1936 / DynamicTables / AddRows ? Key = 30060d39-7531-41a2-8d40-4c53ec34d6ff and rows = 5

2930 200 HTTP somesite.com: 1936 / DynamicTables / Gatefaffease? Key = 30060d39-7531-41a2-8d40-4c53ec34d6ff and newPageNumber = 21 and rowsPerPage = 30

But the server handles these requests in a second sequence (I have a breakpoint at the start of each of these methods on the server And to check this sequence). Therefore, the actual sequence is: 1) Adro 2) Save Contributorate 3) GetNextPage

It seems that asp.net spends different time to handle these requests before it comes to the breakpoint. Can anyone help me why this is possible? Is there any way to avoid this situation?

Thank you, Agor

If you are sending a series of asynchronous messages to the server There is no guarantee that the order in which they will be processed. If you need control of that level, then bundle them in the same call on the server or call them synchronously.


Comments