Ejemplo n.º 1
0
        public PlexListenerService(string clientIp)
        {
            _plexWebChecker = new PlexWebChecker(new Uri(string.Format("http://{0}:3005/player/timeline/poll?commandID=1245", clientIp)));

            _timer           = new Timer();
            _timer.Interval  = 5000;
            _timer.AutoReset = true;
            _timer.Elapsed  += OnTimerElapsed;
        }
Ejemplo n.º 2
0
        public PlexListenerService(PlexListenerConfig configuration)
        {
            _plexWebChecker = new PlexWebChecker(new Uri(string.Format("{0}/status/sessions", configuration.ServerUri)));

            Configuration    = configuration;
            _timer           = new Timer();
            _timer.Interval  = 5000;
            _timer.AutoReset = true;
            _timer.Elapsed  += OnTimerElapsed;
        }