public static void CallPeersDataSent(this PeersHooks hooks, FileHash hash, PeerHash peer, NetworkAddress[] remotes) { hooks.OnPeersDataSent?.Invoke(new PeersReceived { Hash = hash, Peer = peer, Remotes = remotes }); }
public PeersPlugin(PeersHooks hooks) { this.hooks = hooks; }
public PeersHandler(PeersHooks hooks) { this.hooks = hooks; }