/// <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); }); }); }
/// <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(); }); }