コード例 #1
0
 public void ExecuteNextShutdownItem()
 {
     if (ItemQueue.Any())
     {
         _currentItem = ItemQueue.Dequeue();
         Shows.Action action = _currentItem.GetAction();
         action.ActionComplete += OnShutdownActionComplete;
         ExecuteAction(action);
         // Otherwise, the show is done :(
     }
     else
     {
         State = StateType.Waiting;
         ScheduleExecutor.AddSchedulerLogEntry(Show.Name, "Show complete");
         Show.ReleaseAllActions();
     }
 }
コード例 #2
0
 public void ExecuteNextStartupItem()
 {
     if (State == StateType.Running)
     {
         // Do we have startup items to run?
         if (ItemQueue.Any())
         {
             _currentItem = ItemQueue.Dequeue();
             Shows.Action action = _currentItem.GetAction();
             action.ActionComplete += OnStartupActionComplete;
             ExecuteAction(action);
         }
         // Otherwise, move on to the sequential and background items
         else
         {
             BeginSequential();
             BeginBackground();
         }
     }
 }
コード例 #3
0
 public void ExecuteNextSequentialItem()
 {
     LogScheduleInfoEntry("ExecuteNextSequentialItem");
     if (State == StateType.Running)
     {
         if (ItemQueue.Any())
         {
             LogScheduleInfoEntry("ExecuteNextSequentialItem: Dequeue next item");
             _currentItem = ItemQueue.Dequeue();
             Shows.Action action = _currentItem.GetAction();
             action.ActionComplete += OnSequentialActionComplete;
             ExecuteAction(action);
         }
         else
         {
             LogScheduleInfoEntry("ExecuteNextSequentialItem: Nothing left in the queue. Restarting the queue.");
             // Restart the queue
             BeginSequential();
         }
     }
 }
コード例 #4
0
 public void ExecuteNextSequentialItem()
 {
     ScheduleExecutor.Logging.Info("ExecuteNextSequentialItem");
     if (State == StateType.Running)
     {
         if (ItemQueue.Any())
         {
             ScheduleExecutor.Logging.Info("ExecuteNextSequentialItem: Dequeue");
             _currentItem = ItemQueue.Dequeue();
             Shows.Action action = _currentItem.GetAction();
             action.ActionComplete += OnSequentialActionComplete;
             ExecuteAction(action);
         }
         else
         {
             ScheduleExecutor.Logging.Info("ExecuteNextSequentialItem: BeginSequential");
             // Restart the queue
             BeginSequential();
         }
     }
 }
コード例 #5
0
ファイル: ScheduleItem.cs プロジェクト: Jchuchla/vixen
 public void ExecuteNextStartupItem()
 {
     if (State == StateType.Running)
     {
         // Do we have startup items to run?
         if (ItemQueue.Any())
         {
             _currentItem = ItemQueue.Dequeue();
             Shows.Action action = _currentItem.GetAction();
             action.ActionComplete += OnStartupActionComplete;
             ExecuteAction(action);
         }
         // Otherwise, move on to the sequential and background items
         else
         {
             BeginSequential();
             BeginBackground();
         }
     }
 }
コード例 #6
0
ファイル: ScheduleItem.cs プロジェクト: Jchuchla/vixen
 public void ExecuteNextShutdownItem()
 {
     if (ItemQueue.Any() )
     {
         _currentItem = ItemQueue.Dequeue();
         Shows.Action action = _currentItem.GetAction();
         action.ActionComplete += OnShutdownActionComplete;
         ExecuteAction(action);
         // Otherwise, the show is done :(
     }
     else
     {
         State = StateType.Waiting;
         ScheduleExecutor.AddSchedulerLogEntry(Show.Name, "Show complete");
         Show.ReleaseAllActions();
     }
 }
コード例 #7
0
ファイル: ScheduleItem.cs プロジェクト: Jchuchla/vixen
 public void ExecuteNextSequentialItem()
 {
     ScheduleExecutor.Logging.Info("ExecuteNextSequentialItem");
     if (State == StateType.Running)
     {
         if (ItemQueue.Any() )
         {
             ScheduleExecutor.Logging.Info("ExecuteNextSequentialItem: Dequeue");
             _currentItem = ItemQueue.Dequeue();
             Shows.Action action = _currentItem.GetAction();
             action.ActionComplete += OnSequentialActionComplete;
             ExecuteAction(action);
         }
         else
         {
             ScheduleExecutor.Logging.Info("ExecuteNextSequentialItem: BeginSequential");
             // Restart the queue
             BeginSequential();
         }
     }
 }
コード例 #8
0
ファイル: ScheduleItem.cs プロジェクト: sall/vixen
 public void ExecuteNextSequentialItem()
 {
     LogScheduleInfoEntry("ExecuteNextSequentialItem");
     if (State == StateType.Running)
     {
         if (ItemQueue.Any() )
         {
             LogScheduleInfoEntry("ExecuteNextSequentialItem: Dequeue next item");
             _currentItem = ItemQueue.Dequeue();
             Shows.Action action = _currentItem.GetAction();
             action.ActionComplete += OnSequentialActionComplete;
             ExecuteAction(action);
         }
         else
         {
             LogScheduleInfoEntry("ExecuteNextSequentialItem: Nothing left in the queue. Restarting the queue.");
             // Restart the queue
             BeginSequential();
         }
     }
 }