예제 #1
0
 private static void checkReadyContextDispatcher()
 {
     if (mTimerObject == null)
     {
         Log.d("DownloadVoiceService", "download voice service dispatcher startup. ");
         mTimerObject = TimerService.addTimer(1, new EventHandler(DownloadVoiceService.onVoiceContextDispatcher), 1, -1);
         mTimerObject.start();
     }
 }
예제 #2
0
 private static void checkReadyContextDispatcher()
 {
     if (mTimerObject == null)
     {
         Log.d("UploadVideoService", "upload video service dispatcher startup. ");
         mTimerObject = TimerService.addTimer(2, new EventHandler(UploadVideoService.onVideoContextDispatcher), 0, -1);
         mTimerObject.start();
         onVideoContextDispatcher(null, null);
     }
 }
예제 #3
0
 private void checkReadyContextDispatcher()
 {
     if (mTimerObject == null)
     {
         Log.d("DownloadVideoService", "Download video service dispatcher startup. ");
         mTimerObject = TimerService.addTimer(2, new EventHandler(this.onVideoDownContextDispatcher), 0, -1);
         mTimerObject.start();
         this.onVideoDownContextDispatcher(null, null);
     }
 }
예제 #4
0
 private static void startCheckTimer()
 {
     if (mTimerObject == null)
     {
         //Deployment.get_Current().get_Dispatcher().BeginInvoke(delegate {
         mTimerObject = TimerService.addTimer(20, new EventHandler(ServerBulletin.onCheckFaultModeTimeout));
         mTimerObject.start();
         //  });
     }
 }
예제 #5
0
 private static void checkReadyContextDispatcher()
 {
     if (mTimerObject == null)
     {
         mTimerObject = TimerService.addTimer(1, new EventHandler(DownloadImgService.onImageDownContextDispatcher), 1, -1);
         mTimerObject.start();
         onImageDownContextDispatcher(null, null);
         // mTimerObject = new System.Timers.Timer();
         //mTimerObject.Interval = 1000;
         //mTimerObject.Elapsed += DownloadImgService.onImageDownContextDispatcher;
         //mTimerObject.Start();
         //onImageDownContextDispatcher(null, null);
     }
 }
예제 #6
0
 private void checkReadyContextDispatcher()
 {
     if (mTimerObject == null)
     {
         Log.i("UploadVoiceService", "upload voice service dispatcher startup. ");
         mTimerObject = new TimerObject();
         mTimerObject = TimerService.addTimer(3, new EventHandler(UploadVoiceService.onVoiceContextDispatcher), 0, -1);
         mTimerObject.start();
         //mTimerObject = new System.Timers.Timer();
         //mTimerObject.Interval = 1000;
         //mTimerObject.Elapsed += UploadVoiceService.onVoiceContextDispatcher;
         //mTimerObject.Start();
     }
 }