コード例 #1
0
ファイル: Program.cs プロジェクト: christav/GHSprintTrax
        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
ファイル: SprintReader.cs プロジェクト: christav/GHSprintTrax
 public SprintReader(GithubService github, string ownerLogin, string repositoryName)
 {
     this.github = github;
     this.ownerLogin = ownerLogin;
     this.repositoryName = repositoryName;
 }