Async Controllers (MVC), long running process with “stops”

后端 未结 3 1489
感情败类
感情败类 2021-01-14 03:06

I\'m interested in running a long process, I want to update the UI as soon as results start coming in and not wait for it to finish.

How would I go about this? I\'ve

3条回答
  •  独厮守ぢ
    2021-01-14 03:51

    I was trying to solve something similar (reporting real-time progress from a long running server operation back to the client) recently and it turned out SignalR is a perfect fit for this situation.

    Basically it is a library wrapping long-polling and Web Sockets, using (transparently) whatever is available on server and client.

    I only have good experience with it so far.

提交回复
热议问题