【问题标题】:RedirectingResponse.AsActionResult() no longer exist, what can I replace that with for DotNetOpenAuth?RedirectingResponse.AsActionResult() 不再存在,对于 DotNetOpenAuth,我可以用什么替换它?
【发布时间】:2010-06-10 10:19:19
【问题描述】:

我试图复制 Rick 在这里为 OpenID 实施所做的工作: http://www.west-wind.com/weblog/posts/899303.aspx

但是,当我谈到这部分时:

return req.RedirectingResponse.AsActionResult();

那我就不能继续了,因为 AsActionResult 已经不存在了,这个有什么替代品吗?

非常感谢

【问题讨论】:

  • 没有足够多的教程包括命名空间要求,而控制- 并不总是足以弄清楚。

标签: c# asp.net-mvc openid dotnetopenauth


【解决方案1】:

它仍然存在。这是一种扩展方法,您只能通过将其放在文件顶部来获得:

using DotNetOpenAuth.Messaging;

【讨论】:

  • 它似乎不再在 dll 中了。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2011-04-17
  • 1970-01-01
  • 1970-01-01
  • 2017-07-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多