Пример #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 初始化完毕。");
        }
Пример #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 初始化完毕。");
        }
Пример #3
0
 internal VideoGroup(RovioSettings owner)
 {
     this.owner = owner;
 }
Пример #4
0
 internal MailGroup(RovioSettings owner)
 {
     this.owner = owner;
 }
Пример #5
0
 internal MovementGroup(RovioSettings owner)
 {
     this.owner = owner;
 }
Пример #6
0
 internal MailGroup(RovioSettings owner)
 {
     this.owner = owner;
 }
Пример #7
0
 internal VideoGroup(RovioSettings owner)
 {
     this.owner = owner;
 }
Пример #8
0
 internal MovementGroup(RovioSettings owner)
 {
     this.owner = owner;
 }