Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Rovio" /> class.
        /// </summary>
        public Rovio()
        {
            log.Info("Rovio 初始化 ...");
            this.threadPool = new SmartThreadPool(1000, MAX_REQUESTS);

            this.timerRefreshStatus           = new System.Timers.Timer();
            this.timerRefreshStatus.Interval  = STATUS_INTERVAL;
            this.timerRefreshStatus.AutoReset = false;
            this.timerRefreshStatus.Elapsed  += delegate(object sender, System.Timers.ElapsedEventArgs e)
            {
                threadPool.QueueWorkItem(UpdateStatus);
                //UpdateStatus();
            };

            this.listWays = new List <string>();
            this.settings = new RovioSettings(this);

            InitMovement();
            log.Info("Rovio 初始化完毕。");
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Rovio" /> class.
        /// </summary>
        public Rovio()
        {
            log.Info("Rovio 初始化 ...");
            this.threadPool = new SmartThreadPool(1000, MAX_REQUESTS);

            this.timerRefreshStatus = new System.Timers.Timer();
            this.timerRefreshStatus.Interval = STATUS_INTERVAL;
            this.timerRefreshStatus.AutoReset = false;
            this.timerRefreshStatus.Elapsed += delegate(object sender, System.Timers.ElapsedEventArgs e)
            {
                threadPool.QueueWorkItem(UpdateStatus);
                //UpdateStatus();
            };

            this.listWays = new List<string>();
            this.settings = new RovioSettings(this);

            InitMovement();
            log.Info("Rovio 初始化完毕。");
        }
Esempio n. 3
0
 internal VideoGroup(RovioSettings owner)
 {
     this.owner = owner;
 }
Esempio n. 4
0
 internal MailGroup(RovioSettings owner)
 {
     this.owner = owner;
 }
Esempio n. 5
0
 internal MovementGroup(RovioSettings owner)
 {
     this.owner = owner;
 }
Esempio n. 6
0
 internal MailGroup(RovioSettings owner)
 {
     this.owner = owner;
 }
Esempio n. 7
0
 internal VideoGroup(RovioSettings owner)
 {
     this.owner = owner;
 }
 internal MovementGroup(RovioSettings owner)
 {
     this.owner = owner;
 }