public CheckPullRequestStatusJob(ILogger <CheckPullRequestStatusJob> logger, NotificationsEnabledDb database, IBackgroundJobClient jobClient, ICLAExemptions claExemptions) { this.logger = logger; this.database = database; this.jobClient = jobClient; this.claExemptions = claExemptions; }
public OAuthReturnController(ILogger <OAuthReturnController> logger, IConfiguration configuration, // ReSharper disable once ContextualLoggerProblem NotificationsEnabledDb database, ILogger <GithubAPI> githubLog, ICLAExemptions claExemptions) : base(logger, database) { this.githubLog = githubLog; this.claExemptions = claExemptions; githubClientId = configuration["Login:Github:ClientId"]; githubClientSecret = configuration["Login:Github:ClientSecret"]; if (string.IsNullOrEmpty(githubClientId) || string.IsNullOrEmpty(githubClientSecret)) { githubConfigured = false; } else { githubConfigured = true; } }