public RepositoryContext(RepositoryParameters parameters, RepositoryDependencies dependencies, RepositoryHooks hooks, RepositoryConfiguration configuration) { this.parameters = parameters; this.dependencies = dependencies; this.hooks = hooks; this.configuration = configuration; bitfile = new BitfileService(parameters.Hash, Path.Combine(parameters.MetaDestination, $"{parameters.Hash}.bitfield")); queue = new RepositoryTaskQueue(this); }
public RepositoryService(RepositoryParameters parameters, RepositoryDependencies dependencies, RepositoryHooks hooks, RepositoryConfiguration configuration) { context = new RepositoryContext(parameters, dependencies, hooks, configuration); }
public RepositoryBuilder() { parameters = new RepositoryParameters(); dependencies = new RepositoryDependencies(); configuration = new RepositoryConfiguration(); }