private void StartPoller(AuthorizationCodeAuth auth, Token token) { CoverManager coverManager = new CoverManager(); NowPlayingTrackInfoProvider trackInfoProvider = new SpotifyNowPlayingTrackInfoProvider(webApi, auth, token); poller = new TrackInfoPoller(trackInfoProvider, coverManager, this); Thread pollerThread = new Thread(new ThreadStart(poller.PollAndUpdate)); pollerThread.Start(); }
private void StartPoller() { CoverManager coverManager = new CoverManager(); NowPlayingTrackInfoProvider trackInfoProvider = new SpotifyNowPlayingTrackInfoProvider(); poller = new TrackInfoPoller(trackInfoProvider, coverManager, this); Thread pollerThread = new Thread(new ThreadStart(poller.PollAndUpdate)); pollerThread.Start(); }