예제 #1
0
        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};
        }
예제 #2
0
 public SprintReader(GithubService github, string ownerLogin, string repositoryName)
 {
     this.github = github;
     this.ownerLogin = ownerLogin;
     this.repositoryName = repositoryName;
 }