Exemplo n.º 1
0
        public GitHubHostProvider(ICommandContext context, IGitHubRestApi gitHubApi, IGitHubAuthentication gitHubAuth)
            : base(context)
        {
            EnsureArgument.NotNull(gitHubApi, nameof(gitHubApi));
            EnsureArgument.NotNull(gitHubAuth, nameof(gitHubAuth));

            _gitHubApi  = gitHubApi;
            _gitHubAuth = gitHubAuth;
        }
Exemplo n.º 2
0
        public IssuesController(IOptions <AppSettings> appSettings, IGitHubAuthentication gitHubAuthentication, IWorkItemsRepo workItemsRepo)
        {
            _appSettings          = appSettings;
            _gitHubAuthentication = gitHubAuthentication;
            _workItemsRepo        = workItemsRepo;

#if DEBUG
            _ignoreAuthCheck = true;
#endif
        }