Example #1
0
        private static void InitGithubAccessToken(IGitHubAdapter adapter, IConfiguration configuration)
        {
            var accessToken = configuration.GithubAccessToken;

            while (string.IsNullOrEmpty(accessToken) || !adapter.InitAccessToken(accessToken))
            {
                accessToken = AskForAccessToken();

                configuration.StoreAccessToken(accessToken);
            }
        }
Example #2
0
 public AuthController(IGitHubAdapter gitHubAdapter, IGitBanDataContext dataContext)
 {
     _dataContext = dataContext;
     _gitHub = gitHubAdapter;
 }
Example #3
0
 public ProjectsController(IGitBanDataContext dataContext, IGitHubAdapter gitHubAdapter)
 {
     CurrentDataContext = dataContext;
     _gitHub = gitHubAdapter;
 }
Example #4
0
 public UserService(IGitHubAdapter gitHubAdapter)
 {
     this.gitHubAdapter = gitHubAdapter;
 }
 public FileSearcher(Options options, IGitHubAdapter gitHubAdapter, IConfiguration configuration)
 {
     this.options   = options;
     _gitHubAdapter = gitHubAdapter;
     _configuration = configuration;
 }