示例#1
0
 public bool EnqueueObject(QueueObjectSchedule obj)
 {
     try
     {
         ListQueueObjects.ListQueueSchedules.AddOrUpdate(obj, 0, Update);
         ChangeQueue();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
示例#2
0
 private int Update(QueueObjectSchedule arg1, int arg2)
 {
     return(1);
 }
示例#3
0
        public void DeleteRecord(QueueObjectSchedule record)
        {
            int i = 0;

            ListQueueObjects.ListQueueSchedules.TryRemove(record, out i);
        }