我想要创建方法,当使用AsyncController
添加到队列中的某些操作时,这将是我的开始:
public class AsyncTest : AsyncController
{
public void LongPollAsync()
{
AsyncManager.OutstandingOperations.Increment();
// search for messages and send them out...
AsyncManager.OutstandingOperations.Decrement();
}
public ActionResult LongPollCompleted()
{
return Json();
}
}