-
Notifications
You must be signed in to change notification settings - Fork 899
Restore old Credentials API as Obsolete #767
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
Conversation
For now, introduced an internal interface to represent having both |
Yeah, preferring to use |
public static CredentialsHandler GetCredentialsHandler(this ICredentialsProvider provider) | ||
{ | ||
if (provider == null) | ||
return null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add some braces here and below please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add some braces here and below please?
Fixed
@dahlbyk Verrrrry classy! Could you please rebase on top of vNext? |
Done |
@dahlbyk Thanks. Travis seems unhappy with the |
{ | ||
var methodsMissingFromInterfaces = | ||
from t in Assembly.GetAssembly(typeof(IRepository)).GetExportedTypes() | ||
where !t.IsInterface | ||
where t.GetInterfaces().Any(i => i.Namespace == typeof(IRepository).Namespace) | ||
where t.GetInterfaces().Any(i => i.IsPublic && i.Namespace == typeof(IRepository).Namespace) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Travis seems unhappy with the
LibGit2SharpInterfacesCoverAllPublicMembers()
meta test though.
Not sure how I didn't notice this before... ICredentialsProvider
is our first non-public
interface; no need to test it.
@dahlbyk As usual, a very clean job! 💖 |
To make #761 less of a breaking change.
TODO:
*Options.Credentials
properties.Currently branched from the HEAD of that PR to make it easier to compare with the previous public API:
7765c12~...dahlbyk;ObsoleteCredentials