Ejemplo n.º 1
0
        public bool initialize()
        {
#if !UseTimer
            //分配1个线程
            _ScheduleExecutor = new ScheduleExecutor(1);

            //加入循环任务
            _PeriodicTaskHandle = _ScheduleExecutor.scheduleExecute(this, 0L, 100);
#else
            ScheduleExecutor2.Instance.scheduleExecute(this, 0, 30000);
#endif

            return(true);
        }
Ejemplo n.º 2
0
        public bool initialize()
        {
            //分配2个线程
            _ScheduleExecutor = new ScheduleExecutor(2);

            //加入循环任务
            _PeriodicTaskHandle = _ScheduleExecutor.scheduleExecute(this, 0L, 100);

            DailyPushMsgDayID = -1;

            //测试推送消息
            //GetuiServerApiSDK.PushMessageToSingle("cf4a0d426a757a391570280e27eea097", "服务器端测试", "服务器端测试消息是否能够发送");

            return(true);
        }
Ejemplo n.º 3
0
 public void release()
 {
     this.handle = null;
     this.player = null;
     this.robot  = null;
 }