コード例 #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();
        }
コード例 #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();
 }