Example #1
0
 public GithubWebhook(
     IOptions <GithubSettings> options,
     IGithubConnectionCache githubConnectionCache,
     IPullRequestHandler pullRequestHandler,
     IGithubPayloadValidator payloadValidator)
 {
     _options = options;
     _githubConnectionCache = githubConnectionCache;
     _pullRequestHandler    = pullRequestHandler;
     _payloadValidator      = payloadValidator;
 }
 /// <summary>
 /// Constructs a new element which wraps a <see cref="GitPullRequest"/> object.
 /// </summary>
 /// <param name="request"></param>
 public PullRequestViewElement(GitPullRequest request, IPullRequestHandler handler)
 {
     m_handler     = handler;
     m_pullRequest = request;
 }
Example #3
0
 public GitHubWebhookDispatcher(
     IIssueHandler issueHandler,
     IPullRequestHandler pullRequestHandler) =>
 (_issueHandler, _pullRequestHandler) = (issueHandler, pullRequestHandler);