Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public PeersSession(CoordinatorService coordinator, PeersPlugin plugin)
 {
     this.coordinator = coordinator;
     this.plugin      = plugin;
 }