DEV Community

Discussion on: How to extend identity UserManager class

uthmanrahimi profile image
Uthman Rahimi • Edited on

Thank you Mohsen.
I've got a question although it is not related to this topic, but I'd liked to know about it, in both IsInRoleByIdAsync(), AddToRoleByRoleIdAsync() methods, there is a method named ThrowIfDisposed(), what are its purposes?

moesmp profile image
Mohsen Esmailpour Author

It’s part of default implementation of UserStore class and it checks whether the current instance is disposed or not.