示例#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();
 }
示例#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();
 }
示例#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();
        }
        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();
        }