DEV Community

loading...

Discussion on: How to extend identity UserManager class

Collapse
uthmanrahimi profile image
uthman • Edited

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?

Collapse
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.
github.com/dotnet/aspnetcore/blob/...