Exemplo n.º 1
0
 public GithubQueryProvider(IGithubClient githubClient)
 {
     _client = githubClient;
 }
Exemplo n.º 2
0
 public GithubController(IGithubClient githubClient)
 {
     _githubClient = githubClient;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="GitHubWatcher" /> class.
        /// </summary>
        /// <param name="env">Hosting environment.</param>
        /// <param name="configuration">The configuration.</param>
        /// <param name="invokerCache">Invoker cache.</param>
        /// <param name="gistCache">Gist cache.</param>
        /// <param name="githubClient">Github client.</param>
        public GitHubWatcher(IHostingEnvironment env, IConfiguration configuration, IInvokerCacheService invokerCache, IGistCacheService gistCache, IGithubClient githubClient, ISearchService searchService)
            : base(env, configuration, invokerCache, gistCache, "GithubWatcher")
        {
            _githubClient  = githubClient;
            _searchService = searchService;

            LoadConfigurations();

            #region Initialize Github Worker

            // TODO: Register the github worker with destination path.
            var gistWorker     = new GithubGistWorker(gistCache);
            var detectorWorker = new GithubDetectorWorker(invokerCache);

            GithubWorkers = new Dictionary <string, IGithubWorker>
            {
                { gistWorker.Name, gistWorker },
                { detectorWorker.Name, detectorWorker }
            };

            #endregion Initialize Github Worker

            Start();
        }
Exemplo n.º 4
0
 public TestController(HttpClient httpClient, IHttpClientFactory httpClientFactory, IGithubClient githubClient)
 {
     _httpClient        = httpClient;
     _httpClientFactory = httpClientFactory;
     _githubClient      = githubClient;
 }
Exemplo n.º 5
0
 public GithubServiceTests(GithubServiceTestsFixture githubClientFixture)
 {
     githubClientFixture.InitGithubClient();
     _cacheService = githubClientFixture.CacheService;
     _githubClient = githubClientFixture.GithubClient;
 }
Exemplo n.º 6
0
 public IsNewVersionAvailableHandler(
     IGithubClient githubClient)
 {
     this.githubClient = githubClient;
 }
Exemplo n.º 7
0
        public GitHubWatcher(IHostingEnvironment env, IConfiguration configuration, IInvokerCacheService invokerCache, IGithubClient githubClient)
            : base(env, configuration, invokerCache, "GithubWatcher")
        {
            _githubClient = githubClient;

            _lastModifiedMarkerName = "_lastModified.marker";
            _deleteMarkerName       = "_delete.marker";
            _cacheIdFileName        = "cacheId.txt";
            LoadConfigurations();
            Start();
        }
 public GithubService(IGithubClient githubClient, IFileParser fileParser)
 {
     _githubClient = githubClient;
     _fileParser   = fileParser;
 }
Exemplo n.º 9
0
 public FakeScoresController(IGithubClient client)
 {
     this.client = client;
 }
Exemplo n.º 10
0
 public HttpClientController(IHttpClientFactory httpClientFactory, GitHubService gitHubService, IGithubClient githubClient)
 {
     _httpClientFactory = httpClientFactory;
     _gitHubService     = gitHubService;
     _githubClient      = githubClient;
 }
 public GithubProfileModel(IGithubClient client)
 {
     Client = client;
 }
Exemplo n.º 12
0
 public LoadDataController(PangeaContext context, IGithubClient githubClient)
 {
     _context      = context;
     _githubClient = githubClient;
 }