开发者

Controller with some synchronous and some asynchronous actions?

开发者 https://www.devze.com 2023-01-27 01:14 出处:网络
Is there a way to have a controller with some synchronous and some asynchro开发者_如何学JAVAnous methods on it? I have one action that would benefit from using an asynchronous model, but I don\'t want

Is there a way to have a controller with some synchronous and some asynchro开发者_如何学JAVAnous methods on it? I have one action that would benefit from using an asynchronous model, but I don't want to drag the rest of the actions with it if I can help it.

So far the only way I've seen to do MVC async is to change the whole controller to an AsyncController.


Stupid question I guess. Looks like you can just put synchronous actions on an AsyncController.

0

精彩评论

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

关注公众号