void IExtensionService.Initialize() { lirc = new LircClient("banshee"); poll = new Thread(new ThreadStart(PollThread)); poll.Start(); }
public void Dispose() { poll.Abort(); lirc.Dispose(); lirc = null; }
static IDisposable SetUpLirc() { var lirc = new LircClient(Settings.Default.LircServer, Settings.Default.LircPort); var handlers = new ILircKeyHandler[] { new FastForwardKey(), new DeleteCurrentFileKey(), new ArchiveCurrentFileKey() } .Select(x => x.SetUp(lirc)); return new CompositeDisposable(handlers); }