public static void Watcher() { if (!EventDataContext.processing) { if (ServiceCore.FeatureMatrix.IsEnable("FeatureMatrixSyncService")) { EventDataContext.ProcessEvent(); EventDataContext.processing = true; return; } if (AdminClientService.IsAllServiceReady()) { EventDataContext.StartProcessing(); return; } Scheduler.Schedule(EventDataContext.Thread, Job.Create(new Action(EventDataContext.Watcher)), 10000); } }