When implementing your own IUserStore, are the “optional” interfaces on the class actually optional?

前端 未结 1 528
忘了有多久
忘了有多久 2020-12-31 13:03

I\'m working with Microsoft\'s Asp.Net Identity framework version 2, and am implementing my own IUserStore. My new class MyUserStore implements the IUserS

相关标签:
1条回答
  • 2020-12-31 13:30

    What I found that Identity framework is not consistent with "optionality" of required I*Store. In some public methods it checks if the required Store is provided, in some other places it just calls for the method. I have not figured out which ones are absolutely required and which ones can be not called. So I'd go with the exception trail and implement whatever the stores are required for your application.

    0 讨论(0)
提交回复
热议问题