Inheritance: ITracker
 public TrackerConnectionID(Tracker tracker, bool trySubsequent, TorrentEvent torrentEvent, ManualResetEvent waitHandle)
 {
     this.tracker = tracker;
     this.trySubsequent = trySubsequent;
     this.torrentEvent = torrentEvent;
     this.waitHandle = waitHandle;
 }
Example #2
0
        public TrackerPeersAdded(TorrentManager manager, int peersAdded, int total, Tracker.Tracker tracker)
            : base(manager, peersAdded, total)
        {
            if (tracker == null)
                throw new ArgumentNullException("tracker");

            _tracker = tracker;
        }
Example #3
0
        public TrackerPeersAdded(TorrentManager manager, int peersAdded, int total, Tracker.Tracker tracker)
            : base(manager, peersAdded, total)
        {
            if (tracker == null)
            {
                throw new ArgumentNullException("tracker");
            }

            _tracker = tracker;
        }
        protected TrackerResponseEventArgs(Tracker tracker, object state, bool successful)
        {
            if (tracker == null)
                throw new ArgumentNullException("tracker");
            var trackerConnectionID = state as TrackerConnectionID;
            if (trackerConnectionID == null)
                throw new ArgumentException("The state object must be the same object as in the call to Announce", "state");

            _id = trackerConnectionID;
            Successful = successful;
            Tracker = tracker;
        }
 public AnnounceResponseEventArgs(Tracker tracker, object state, bool successful, List<Peer> peers)
     : base(tracker, state, successful)
 {
     _peers = peers;
 }
 public AnnounceResponseEventArgs(Tracker tracker, object state, bool successful)
     : this(tracker, state, successful, new List<Peer>())
 {
 }