Exemple #1
0
 /// <summary>
 /// Instantiates an instance of <see cref="Route" />
 /// </summary>
 /// <param name="logger">A logger</param>
 /// <param name="credentials">Github credentials</param>
 /// <param name="coordinator">A webhook co-ordinator to handle the request</param>
 public Route(
     ILogger logger,
     IGitHubCredentials credentials,
     IWebhookCoordinator coordinator
     )
 {
     _logger      = logger;
     _credentials = credentials;
     _coordinator = coordinator;
 }
 /// <summary>
 /// Instanciates a new <see cref="GitHubClientFactory">GitHubClientFactory</see>
 /// </summary>
 /// <param name="credentials">The credentials for GitHub</param>
 public GitHubClientFactory(IGitHubCredentials credentials)
 {
     _credentials             = credentials;
     _applicationTokenHandler = new JwtSecurityTokenHandler();
 }
Exemple #3
0
 public Callback(IGitHubCredentials credentials, IGitHubClientFactory clientFactory, IGitHubUserTokenStore tokenStore)
 {
     _credentials   = credentials;
     _clientFactory = clientFactory;
     _tokenStore    = tokenStore;
 }
 public Authenticate(IGitHubCredentials credentials, IGitHubClientFactory clientFactory, IGitHubUserTokenStore tokenStore)
 {
     _credentials   = credentials;
     _clientFactory = clientFactory;
     _tokenStore    = tokenStore;
 }