public void Start(TrackerGetHooks hooks) { lock (this) { if (pipeline == null) { pipeline = new LeakPipeline(); pipeline.Start(); } if (worker == null) { worker = new CompletionThread(); worker.Start(); } if (service == null) { service = new TrackerGetBuilder() .WithPipeline(pipeline) .WithWorker(worker) .Build(hooks); service.Start(); } } }
public RepositoryFixture() { pipeline = new LeakPipeline(); pipeline.Start(); completion = new CompletionThread(); completion.Start(); files = new FileFactory(completion); }
public void Stop() { lock (this) { if (worker != null) { worker.Dispose(); worker = null; } if (pipeline != null) { pipeline?.Stop(); pipeline = null; } } }
public ConnectorFixture() { pipeline = new LeakPipeline(); pipeline.Start(); worker = new CompletionThread(); worker.Start(); pool = new NetworkPoolBuilder() .WithPipeline(pipeline) .WithWorker(worker) .WithMemory(new ConnectorMemory()) .Build(); pool.Start(); hooks = new PeerConnectorHooks(); }
public LoopFixture() { pipeline = new LeakPipeline(); pipeline.Start(); worker = new CompletionThread(); worker.Start(); pool = new NetworkPoolBuilder() .WithPipeline(pipeline) .WithWorker(worker) .WithMemory(new LoopMemory()) .Build(); pool.Start(); hooks = new ReceiverHooks(); samples = new LoopSamples(); }
public void Start() { lock (this) { if (pipeline == null) { pipeline = new LeakPipeline(); pipeline.Start(); } if (worker == null) { worker = new CompletionThread(); worker.Start(); } if (files == null) { files = new FileFactory(worker); } } }
public NegotiatorFixture() { pipeline = new LeakPipeline(); pipeline.Start(); worker = new CompletionThread(); worker.Start(); pool = new NetworkPoolBuilder() .WithPipeline(pipeline) .WithWorker(worker) .WithMemory(new NegotiatorMemory()) .Build(); pool.Start(); hooks = new HandshakeNegotiatorHooks(); negotiator = new HandshakeNegotiatorBuilder() .WithNetwork(pool) .Build(hooks); }
public PeersFixture() { pipeline = new LeakPipeline(); pipeline.Start(); }
public MetadataFixture() { pipeline = new LeakPipeline(); pipeline.Start(); }