public TrackInfoPoller(NowPlayingTrackInfoProvider Provider, CoverManager CoverManager, Window window)
 {
     this.nowPlayingProvider = Provider;
     this.coverManager = CoverManager;
     this.window = window;
     this.dispatcher = App.Current.Dispatcher;
 }
示例#2
0
 public TrackInfoPoller(NowPlayingTrackInfoProvider Provider, CoverManager CoverManager, Window window)
 {
     this.nowPlayingProvider = Provider;
     this.coverManager       = CoverManager;
     this.window             = window;
     this.dispatcher         = App.Current.Dispatcher;
 }
示例#3
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();
        }
 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();
 }