示例#1
0
        public ITimeTask Task(Action <object> task)
        {
            TimeTask timeTask = new TimeTask(this)
            {
                ActionTaskWithContext = task
            };

            return(timeTask);
        }
示例#2
0
        public ITimeTask Task(Action task)
        {
            TimeTask timeTask = new TimeTask(this)
            {
                ActionTask = task
            };

            return(timeTask);
        }
示例#3
0
 public void Cancel(TimeTask task)
 {
     queueTasks.Remove(task);
 }
示例#4
0
 public ITimeTaskHandler Push(TimeTask task)
 {
     queueTasks.Add(task);
     return(task);
 }
示例#5
0
 public ITimeTask Task(Action<object> task)
 {
     TimeTask timeTask = new TimeTask(this)
     {
         ActionTaskWithContext = task
     };
     return timeTask;
 }
示例#6
0
 public ITimeTask Task(Action task)
 {
     TimeTask timeTask = new TimeTask(this)
     {
         ActionTask = task
     };
     return timeTask;
 }
示例#7
0
 public ITimeTaskHandler Push(TimeTask task)
 {
     queueTasks.Add(task);
     return task;
 }
示例#8
0
 public void Cancel(TimeTask task)
 {
     queueTasks.Remove(task);
 }