Esempio n. 1
0
        public void Initialize()
        {
            if (this.taskDictionary.Count < 2)
            {
                throw new Exception("Count of StartHour must >= 2 !");
            }
            List <ShortTime> list = new List <ShortTime>();

            foreach (ShortTime time in this.taskDictionary.Keys)
            {
                list.Add(time);
            }
            list.Sort();
            this.taskTimeCircle = new Circle <ShortTime>(list);
            ShortTime time2 = new ShortTime(DateTime.Now);

            if ((time2.CompareTo(this.taskTimeCircle.Tail) >= 0) || (time2.CompareTo(this.taskTimeCircle.Header) < 0))
            {
                this.taskTimeCircle.SetCurrent(this.taskTimeCircle.Tail);
            }
            else
            {
                this.taskTimeCircle.SetCurrent(this.taskTimeCircle.Header);
                while (time2.CompareTo(this.taskTimeCircle.PeekNext()) >= 0)
                {
                    this.taskTimeCircle.MoveNext();
                }
            }
            this.agileCycleEngine = new AgileCycleEngine(this);
            this.agileCycleEngine.DetectSpanInSecs = 1;
            this.agileCycleEngine.Start();
        }
        public void Initialize()
        {
            if (_agileCycleEngine != null) return;
            _agileCycleEngine = new AgileCycleEngine(this) {DetectSpanInSecs = _detectSpanInSecs};
            _agileCycleEngine.Start();

            Log.General(_taskName + ":CycleEngine加载完毕并开始执行");
        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            AgileCycleEngine agile = new AgileCycleEngine(new EngineActor());

            agile.DetectSpanInSecs = 5;
            agile.Start();
            Console.Read();
        }
Esempio n. 4
0
 public void Initialize()
 {
     if (this.maxMuteSpanInMinutes > 0)
     {
         this.agileCycleEngine = new AgileCycleEngine(this);
         this.agileCycleEngine.DetectSpanInSecs = this.detectSpanInSecs;
         this.agileCycleEngine.Start();
     }
 }
Esempio n. 5
0
 public void method_8()
 {
     if (this.bool_1)
     {
         this.agileCycleEngine_0 = new AgileCycleEngine(this);
         this.agileCycleEngine_0.DetectSpanInSecs = 0;
         this.agileCycleEngine_0.Start();
     }
     this.bool_0 = true;
 }
Esempio n. 6
0
 public Class72(int int_2, int int_3)
 {
     this.int_0 = int_2;
     this.int_1 = int_3;
     if (this.int_0 > 0)
     {
         this.agileCycleEngine_0 = new AgileCycleEngine(this);
         this.agileCycleEngine_0.DetectSpanInSecs = 1;
         this.agileCycleEngine_0.Start();
     }
 }
Esempio n. 7
0
 public void method_3(string string_1)
 {
     this.string_0 = string_1;
     this.object_0.FileTransDisruptted   += new CbGeneric <TransferingProject, FileTransDisrupttedType>(this.HandleMessage);
     this.fblKqUhvkd.FileTransDisruptted += new CbGeneric <TransferingProject, FileTransDisrupttedType>(this.method_5);
     this.object_0.SingleFileRevFinished += new CbGeneric <string>(this.SingleFileNotifyContract);
     if (this.int_0 > 0)
     {
         this.agileCycleEngine_0 = new AgileCycleEngine(this);
         this.agileCycleEngine_0.DetectSpanInSecs = 20;
         this.agileCycleEngine_0.Start();
     }
 }
Esempio n. 8
0
        public FileTransferingViewer()
        {
            InitializeComponent();

            this.agileCycleEngine = new AgileCycleEngine(this);
            this.agileCycleEngine.DetectSpanInSecs = 1;
            this.agileCycleEngine.Start();

            this.FileResumedTransStarted += delegate { };
            this.FileTransCompleted      += delegate { };
            this.FileTransDisruptted     += delegate { };
            this.FileTransStarted        += delegate { };
            this.AllTaskFinished         += delegate { };
        }
Esempio n. 9
0
 public void Initialize()
 {
     if (this.refreshSpanInSecs <= 0)
     {
         throw new Exception("RefreshSpanInSecs Property must be greater than 0 !");
     }
     foreach (IRefreshableCache cache in this.cacheList)
     {
         cache.LastRefreshTime = DateTime.Now;
     }
     this.agileCycleEngine = new AgileCycleEngine(this);
     this.agileCycleEngine.DetectSpanInSecs = 1;
     this.agileCycleEngine.Start();
 }
Esempio n. 10
0
 public Class71(BasicOutter class113_0, int int_0)
 {
     this.agileCycleEngine_0 = new AgileCycleEngine(this);
     this.agileCycleEngine_0.DetectSpanInSecs = int_0;
     this.XjfvlYiJdt = class113_0;
 }
Esempio n. 11
0
 public void Initialize()
 {
     this.engine = new AgileCycleEngine(this);
     this.engine.DetectSpanInSecs = this.detectSpanInSecs;
     this.engine.Start();
 }
Esempio n. 12
0
 public ContactsMessageHandler()
 {
     this.agileCycleEngine_0 = new AgileCycleEngine(this);
     this.agileCycleEngine_0.DetectSpanInSecs = 0;
 }
Esempio n. 13
0
 public DynamicGroupHandler()
 {
     this.notifyEngine = new AgileCycleEngine(this);
     this.notifyEngine.DetectSpanInSecs = 0;
 }
Esempio n. 14
0
 public GroupOutter()
 {
     this.agileCycleEngine_0 = new AgileCycleEngine(this);
     this.agileCycleEngine_0.DetectSpanInSecs = 0;
 }
Esempio n. 15
0
 public Class25()
 {
     this.agileCycleEngine_0 = new AgileCycleEngine(this);
     this.agileCycleEngine_0.DetectSpanInSecs = 0;
 }