Exemple #1
0
        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);
        }
Exemple #2
0
 public RepositoryService(RepositoryParameters parameters, RepositoryDependencies dependencies, RepositoryHooks hooks, RepositoryConfiguration configuration)
 {
     context = new RepositoryContext(parameters, dependencies, hooks, configuration);
 }
Exemple #3
0
 public RepositoryBuilder()
 {
     parameters    = new RepositoryParameters();
     dependencies  = new RepositoryDependencies();
     configuration = new RepositoryConfiguration();
 }