示例#1
0
        /// <summary>
        /// Order rescanning of a single provided tracker.
        /// </summary>
        public void RescanSingleTracker(Tracker tracker)
        {
            Task.Run(() =>
            {
                Scanner.SingleTrackerScan(tracker);

                Dispatch(() =>
                {
                    TrackerRescanned?.Invoke((int)tracker.ID);
                });
            });
        }
示例#2
0
        /// <summary>
        /// Does next effective scan of all trackers.
        /// </summary>
        public void DoFullRescan()
        {
            Task.Run(() =>
            {
                Scanner.MultiTrackerScan(TrackersObservable);

                Dispatch(() =>
                {
                    foreach (Tracker tracker in TrackersObservable)
                    {
                        TrackerRescanned?.Invoke((int)tracker.ID);
                    }
                });
                RefreshTrackersIndicatorsDispatched();
            });
        }