public Session() { this._session = new Ragnar.Session(this.fingerprint); this.workerAlert = new Worker.BackgroundWorker(_alertEventHandler, true); this._session.SetAlertMask(SessionAlertCategory.All); this.workerAlert.Run(); }
public LibTorrentAlertsWatcher(Ragnar.Session session) { ses = session; alerts = ses.Alerts; main_thread_dispatcher = System.Windows.Threading.Dispatcher.CurrentDispatcher; watcher_thread = new System.Threading.Thread(monitor); watcher_thread.Priority = System.Threading.ThreadPriority.AboveNormal; watcher_thread.Start(); }