public PeersSession Start() { PeersHooks hooks = new PeersHooks(); PeersPlugin plugin = new PeersPlugin(hooks); CoordinatorService coordinator = new CoordinatorBuilder() .WithHash(FileHash.Random()) .WithPipeline(pipeline) .WithPlugin(plugin) .Build(); return(new PeersSession(coordinator, plugin)); }
public PeersSession(CoordinatorService coordinator, PeersPlugin plugin) { this.coordinator = coordinator; this.plugin = plugin; }