public void Push(ActivityUtilities.ChildActivity childActivity)
 {
     if (!childActivity.CanBeExecuted)
     {
         this.nonExecutingParentCount++;
     }
     this.callStack.PushFront(childActivity);
 }
 public ActivityUtilities.ChildActivity Pop()
 {
     ActivityUtilities.ChildActivity activity = this.callStack.Dequeue();
     if (!activity.CanBeExecuted)
     {
         this.nonExecutingParentCount--;
     }
     return(activity);
 }