Example #1
0
 protected BaseService(FormatType format)
 {
     if (Config.GitHub.Authentication != null && !string.IsNullOrEmpty(Config.GitHub.Authentication.UserName) && !string.IsNullOrEmpty(Config.GitHub.Authentication.ApiToken))
         Client = new GithubClient(format, Config.GitHub.Authentication.UserName, Config.GitHub.Authentication.ApiToken);
     else
         Client = new GithubClient(format);
 }
Example #2
0
 protected BaseService(FormatType format, string gitHubUserName, string gitHubApiToken) 
 {
     Client = new GithubClient(format, gitHubUserName, gitHubApiToken);
 }