private void ConnectToGithub() { var credentialProvider = new CompositeCredentialProvider() .Add(new GitCredentialProvider("github.com")) .Add(new AskUserCredentialProvider()); var authorization = AuthManager.GetAuthorization(credentialProvider); github = new GithubService(authorization) {UserAgent = UserAgent, AgentVersion = AgentVersion}; }
public SprintReader(GithubService github, string ownerLogin, string repositoryName) { this.github = github; this.ownerLogin = ownerLogin; this.repositoryName = repositoryName; }