Exemplo n.º 1
0
        public GitHubPackageManager(string userAgent)
        {
            if (userAgent == null)
            {
                throw new ArgumentNullException(nameof(userAgent));
            }

            _githubClient = new GitHubApiClient(GITHUB_USER, GITHUB_REPO, userAgent);
        }
Exemplo n.º 2
0
        public GitHubService(string token = "")
        {
            _client = string.IsNullOrEmpty(token)
        ? new GitHubApiClient()
        : new GitHubApiClient(token);

            var config = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <User, UserViewModel>();
            });

            _mapper = config.CreateMapper();
        }
Exemplo n.º 3
0
 public DefaultController(GitHubApiClient client)
 {
     _client = client;
 }