public static FetchedRepo GetInstance(WritableRepositoryInformation repo, RepoUtils repoUtils, ILogger <FetchedRepo> logger) { var fetchedRepo = new FetchedRepo(repo, repoUtils, logger); fetchedRepo.Init(); return(fetchedRepo); }
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)); }
public ConfigFileParser(RepoUtils repoUtils, ILogger <ConfigFileParser> logger) { _repoUtils = repoUtils ?? throw new ArgumentNullException(nameof(repoUtils)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public RepoFetcher(RepoUtils repoUtils, ILoggerFactory loggerFactory) { _repoUtils = repoUtils ?? throw new ArgumentNullException(nameof(repoUtils)); _loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory)); }