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; }
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; }