/// <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 初始化完毕。"); }
/// <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 初始化完毕。"); }
internal VideoGroup(RovioSettings owner) { this.owner = owner; }
internal MailGroup(RovioSettings owner) { this.owner = owner; }
internal MovementGroup(RovioSettings owner) { this.owner = owner; }