Esempio n. 1
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;
 }
Esempio 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;
        }