ASP.NET WebAPI Ajax with Progress

I have a very long webAPI request that basically does the following:

1. retrieves a list of item categories from the db 
2. for each category, retrieve all the items in the category

Now the whole process takes a very long time, and I do not want the user to wait for the completion of the whole process, if the category has finished loading, I want it to return to the client.

Does anyone know how I can do this? Send a request and receive server progress notifications whenever a part of the request is complete?

+4
source share
3 answers

You can use SignalR to send data from the server to the client when it is available.

- . , , - ( , ). .

+2

. . , - , .

- . Jquery , - asp.net

0

All Articles