New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make methods virtual so they can be redefined in derived classes. #13752
Conversation
Hi there @jbreuer, thank you for this contribution! 👍 While we wait for one of the Core Collaborators team to have a look at your work, we wanted to let you know about that we have a checklist for some of the things we will consider during review:
Don't worry if you got something wrong. We like to think of a pull request as the start of a conversation, we're happy to provide guidance on improving your contribution. If you realize that you might want to make some changes then you can do that by adding new commits to the branch you created for this work and pushing new commits. They should then automatically show up as updates to this pull request. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
@mikecp Thanks for approving this PR. Can this be merged before the 11.2 RC is out? Thanks. |
Currently discussing is this would be a breaking change - according to https://learn.microsoft.com/en-us/dotnet/core/compatibility/library-change-rules#members it is:
But not sure if we need to worry about that. |
Thanks for the precision @nul800sebastiaan ! |
After some testing, turns out it wouldn't affect us! 👍 Thanks @jbreuer!🎖️ |
Cherry picked for 10.5 in 815eb5b |
Prerequisites
Description
When you're using external login providers you sometimes want to override the MemberManager and MemberSignInManager classes with custom implementations. By making the methods of these classes virtual you can inherit from those classes and only override what you need to.
This is an example of the CustomMemberSignInManager where I override the virtual ExternalLoginSignInAsync method: