Inr*_*ego 5 c# asp.net asp.net-mvc asp.net-mvc-5 asp.net-identity
昨晚,我决定尝试将SignalR应用到我的应用程序,因为我使用MVC 5,我不得不使用SignalR的2.0 beta.
哦,男孩,什么时间.昨晚,微软还决定推出所有mvc 5相关软件包的rc1,并且更新打破了一些问题 - 主要是在beta2模板中的帐户控制器中.
public AccountController()
{
IdentityStore = new IdentityStoreManager();
AuthenticationManager = new IdentityAuthenticationManager(IdentityStore);
}
public AccountController(IdentityStoreManager storeManager, IdentityAuthenticationManager authManager)
{
IdentityStore = storeManager;
AuthenticationManager = authManager;
}
public IdentityStoreManager IdentityStore { get; private set; }
public IdentityAuthenticationManager AuthenticationManager { get; private set; }
Run Code Online (Sandbox Code Playgroud)
IdentityStoreManager并且IdentityAuthenticationManager不再被认可.
有没有人成功迁移到rc1了?我找不到MS的任何文档或更新的模板.
更新以下nuget包:
得到这些:
然后,您的AccountController.cs文件中仍会有很多错误.但是现在你在项目中有类来修复它们,或者你可以获得我修复的AccountController.cs文件,它编译并运行应用程序,但是有一个地方(用todo评论:)我不确定关于.
您可以在我的github上的示例项目中下载我的AccountController.cs文件:https: //github.com/onybo/Asp.Net-Identity-RC1-sample-app
| 归档时间: |
|
| 查看次数: |
2361 次 |
| 最近记录: |