jjzjj

IUserStore

全部标签

c# - 在实现自己的 IUserStore 时,类上的 "optional"接口(interface)实际上是可选的吗?

我正在使用Microsoft的Asp.NetIdentity框架版本2,并且正在实现我自己的IUserStore。我的新类MyUserStore实现IUserStore接口(interface)和IUserPasswordStore,这是与UserManager一起使用所需要的类(class)。或者至少这是我从阅读this等教程中收集到的信息:"TheonerequiredinterfaceintheidentitysystemisIUserStore"-ScottAllen但是我运行代码的时候好像不是这样。我初始化我的管理器:varuMan=newUserManager(newMyU