AsyncController在MVC2和T4MVC:他们能一起工作? [英] AsyncController in MVC2 and T4MVC: can they work together?

查看:129
本文介绍了AsyncController在MVC2和T4MVC:他们能一起工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

异步行动AsyncControllers(在MVC2)有两个动作方法(ActionNameAsync和ActionNameCompleted),这似乎混淆T4MVC。

Async actions in AsyncControllers (in MVC2) have two action methods (ActionNameAsync and ActionNameCompleted) which seem to confuse T4MVC.

如果它不能与T4MVC做,有没有办法从尝试包括这些方法禁用它?

If it can't be done with T4MVC, is there a way to disable it from trying to include these methods?

推荐答案

事实上,异步控制器目前不与T4MVC工作。这里是一个线程讨论这个问题: http://forums.asp.net/t/1534619.aspx

Indeed, async controllers don't currently work with T4MVC. Here was a thread discussing it: http://forums.asp.net/t/1534619.aspx

这是造成东西打破你呢,还是仅仅是T4MVC不适用于这些方法,但一切工作正常?

Is this causing something to break for you, or is it simply that T4MVC is not available for those methods, but everything else works fine?

这篇关于AsyncController在MVC2和T4MVC:他们能一起工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆