Skip to content

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

Merged
merged 2 commits into from
Jun 21, 2014
Merged

Conversation

dahlbyk
Copy link
Member

@dahlbyk dahlbyk commented Jun 15, 2014

To make #761 less of a breaking change.

TODO:

  • Actually use the *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

@dahlbyk
Copy link
Member Author

dahlbyk commented Jun 15, 2014

For now, introduced an internal interface to represent having both Credentials and CredentialsProvider. The latter takes precedence.

@dahlbyk dahlbyk changed the title WIP: Restore old Credentials API as Obsolete Restore old Credentials API as Obsolete Jun 15, 2014
@nulltoken
Copy link
Member

I like this! @Therzok @carlosmn How about you?

@carlosmn
Copy link
Member

Yeah, preferring to use Credentials makes sense.

public static CredentialsHandler GetCredentialsHandler(this ICredentialsProvider provider)
{
if (provider == null)
return null;
Copy link
Member

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?

Copy link
Member Author

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

@nulltoken
Copy link
Member

@dahlbyk Verrrrry classy! Could you please rebase on top of vNext?

@dahlbyk
Copy link
Member Author

dahlbyk commented Jun 19, 2014

Could you please rebase on top of vNext?

Done

@nulltoken
Copy link
Member

@dahlbyk Thanks. Travis seems unhappy with the LibGit2SharpInterfacesCoverAllPublicMembers() meta test though. Could you please take a look at it?

{
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)
Copy link
Member Author

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.

@nulltoken nulltoken merged commit 19cd630 into vNext Jun 21, 2014
@nulltoken nulltoken deleted the dahlbyk/ObsoleteCredentials branch June 21, 2014 11:35
@nulltoken
Copy link
Member

@dahlbyk As usual, a very clean job! 💖

@nulltoken nulltoken added this to the v0.19.0 milestone Jun 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants