Ejemplo 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 初始化完毕。");
        }
Ejemplo 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 初始化完毕。");
        }
Ejemplo n.º 3
0
 internal VideoGroup(RovioSettings owner)
 {
     this.owner = owner;
 }
Ejemplo n.º 4
0
 internal MailGroup(RovioSettings owner)
 {
     this.owner = owner;
 }
Ejemplo n.º 5
0
 internal MovementGroup(RovioSettings owner)
 {
     this.owner = owner;
 }
Ejemplo n.º 6
0
 internal MailGroup(RovioSettings owner)
 {
     this.owner = owner;
 }
Ejemplo n.º 7
0
 internal VideoGroup(RovioSettings owner)
 {
     this.owner = owner;
 }
Ejemplo n.º 8
0
 internal MovementGroup(RovioSettings owner)
 {
     this.owner = owner;
 }