public GitHubClient(OAuth2Token credentials) { #region Preconditions if (credentials == null) throw new ArgumentNullException(nameof(credentials)); #endregion this.auth = credentials; }
public GitHubRepository(Uri url, OAuth2Token credentials) { // https://github.com/orgName/repoName.git var info = RepositoryInfo.Parse(url.ToString()); AccountName = info.AccountName; RepositoryName = info.Name; client = new GitHubClient(credentials); }
public GitHubRepository(string accountName, string repositoryName, OAuth2Token credentials) { #region Preconditions if (accountName == null) throw new ArgumentNullException(nameof(accountName)); if (repositoryName == null) throw new ArgumentNullException(nameof(repositoryName)); #endregion AccountName = accountName; RepositoryName = repositoryName; client = new GitHubClient(credentials); }
public GitHubClient(OAuth2Token accessToken) { this.accessToken = accessToken; }