private static GitHubCredentials GetGitHubCredentials() { var retrievers = new RetrievesCredentials[] { new CachesGitHubCredentials(), new RetrievesUserEnteredCredentials() }; var firstAppropriate = (from applier in retrievers where applier.IsAvailable() select applier).First(); return(firstAppropriate.Retrieve()); }
private static GitHubCredentials GetGitHubCredentials() { var retrievers = new RetrievesCredentials[] { new CachesGitHubCredentials(), new RetrievesUserEnteredCredentials() }; var firstAppropriate = (from applier in retrievers where applier.IsAvailable() select applier).First(); return firstAppropriate.Retrieve(); }