private static void InitGithubAccessToken(IGitHubAdapter adapter, IConfiguration configuration) { var accessToken = configuration.GithubAccessToken; while (string.IsNullOrEmpty(accessToken) || !adapter.InitAccessToken(accessToken)) { accessToken = AskForAccessToken(); configuration.StoreAccessToken(accessToken); } }
public AuthController(IGitHubAdapter gitHubAdapter, IGitBanDataContext dataContext) { _dataContext = dataContext; _gitHub = gitHubAdapter; }
public ProjectsController(IGitBanDataContext dataContext, IGitHubAdapter gitHubAdapter) { CurrentDataContext = dataContext; _gitHub = gitHubAdapter; }
public UserService(IGitHubAdapter gitHubAdapter) { this.gitHubAdapter = gitHubAdapter; }
public FileSearcher(Options options, IGitHubAdapter gitHubAdapter, IConfiguration configuration) { this.options = options; _gitHubAdapter = gitHubAdapter; _configuration = configuration; }