Beispiel #1
0
        public async void GetPeers(InfoHash infoHash)
        {
            CheckDisposed();
            Check.InfoHash(infoHash);

            try {
                await MainLoop;
                var   task = new GetPeersTask(this, infoHash);
                await task.ExecuteAsync();
            } catch {
                // Ignore?
            }
        }
Beispiel #2
0
        public async void GetPeers(InfoHash infoHash)
        {
            CheckDisposed();
            if (infoHash == null)
            {
                throw new ArgumentNullException(nameof(infoHash));
            }

            try {
                await MainLoop;
                var   task = new GetPeersTask(this, infoHash);
                await task.ExecuteAsync();
            } catch {
                // Ignore?
            }
        }