Esempio n. 1
0
        public static FetchedRepo GetInstance(WritableRepositoryInformation repo, RepoUtils repoUtils, ILogger <FetchedRepo> logger)
        {
            var fetchedRepo = new FetchedRepo(repo, repoUtils, logger);

            fetchedRepo.Init();
            return(fetchedRepo);
        }
Esempio n. 2
0
 private FetchedRepo(WritableRepositoryInformation repoInfo, RepoUtils repoUtils, ILogger <FetchedRepo> logger)
 {
     _repoInfo   = repoInfo ?? throw new ArgumentNullException(nameof(repoInfo));
     _repoUtils  = repoUtils ?? throw new ArgumentNullException(nameof(repoUtils));
     _repoFolder = Path.Combine(ReposIndexer.RepositoriesDirectory, repoInfo.Id);
     _logger     = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Esempio n. 3
0
 public ConfigFileParser(RepoUtils repoUtils, ILogger <ConfigFileParser> logger)
 {
     _repoUtils = repoUtils ?? throw new ArgumentNullException(nameof(repoUtils));
     _logger    = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Esempio n. 4
0
 public RepoFetcher(RepoUtils repoUtils, ILoggerFactory loggerFactory)
 {
     _repoUtils     = repoUtils ?? throw new ArgumentNullException(nameof(repoUtils));
     _loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory));
 }