Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 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();
 }