Esempio n. 1
0
 public Session()
 {
     this._session    = new Ragnar.Session(this.fingerprint);
     this.workerAlert = new Worker.BackgroundWorker(_alertEventHandler, true);
     this._session.SetAlertMask(SessionAlertCategory.All);
     this.workerAlert.Run();
 }
Esempio n. 2
0
 public Session()
 {
     this._session = new Ragnar.Session(this.fingerprint);
     this.workerAlert = new Worker.BackgroundWorker(_alertEventHandler, true);
     this._session.SetAlertMask(SessionAlertCategory.All);
     this.workerAlert.Run();
 }
Esempio n. 3
0
        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();
        }
Esempio n. 4
0
        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();
        }