I posted this question about 8 months ago. The accepted answer touches on some of the things you would miss out on by not playing by the default provider's rules. For example, if you do not use a custom RoleProvider that inherits from RoleProvider, you lose the ability to use quick shortcuts like User.IsInRole()
. The answer refers to things like this as "built-in plumbing."
What I wish to know is where I can find a complete list of stuff that relies on this "built-in plumbing", and something that shows to which overriden methods they are calling behind the scenes.
For example, HttpContext.Current.User.IsInRole()
is (I assume) referring to and calling my overriden "IsUserInRole()" method in my custom RoleProvider, but I would like to see the documentation where it is explicitly stated that HttpContext.Current.User.IsInRole()
is actually calling IsUserInRole()
, for all such methods for all providers.
I understand that it should be kind of obvious already (IsInRole() and IsUserInRole() are so similar), but my motivation for asking is to see and learn about the other kinds of such shortcuts that are available that I'm not even aware of. I have a feeling that I've re-invented the wheel several times, and I don't even know it.