Example #1
0
 public override void ExitNestedPrompt()
 {
     if (this.nestedPromptCount != 0)
     {
         try
         {
             this.externalHostRef.Value.ExitNestedPrompt();
         }
         finally
         {
             this.ExitNestedPromptHelper();
         }
         ExitNestedPromptException exception = new ExitNestedPromptException();
         throw exception;
     }
 }
Example #2
0
 public override void ExitNestedPrompt()
 {
     if (this.nestedPromptCount != 0)
     {
         try
         {
             this.externalHostRef.Value.ExitNestedPrompt();
         }
         finally
         {
             this.ExitNestedPromptHelper();
         }
         ExitNestedPromptException nestedPromptException = new ExitNestedPromptException();
         InternalHost.tracer.TraceException((Exception)nestedPromptException);
         throw nestedPromptException;
     }
 }
Example #3
0
        /// <summary>
        ///
        /// See base class
        ///
        /// <seealso cref="EnterNestedPrompt()"/>
        /// </summary>
        public override void ExitNestedPrompt()
        {
            Dbg.Assert(NestedPromptCount >= 0, "nestedPromptCounter should be greater than or equal to 0");

            if (NestedPromptCount == 0)
            {
                return;
            }

            try
            {
                _externalHostRef.Value.ExitNestedPrompt();
            }
            finally
            {
                ExitNestedPromptHelper();
            }
            ExitNestedPromptException enpe = new ExitNestedPromptException();

            throw enpe;
        }
Example #4
0
        /// <summary>
        /// 
        /// See base class 
        /// 
        /// <seealso cref="EnterNestedPrompt()"/>
        /// </summary>
        public override void ExitNestedPrompt()
        {
            Dbg.Assert(NestedPromptCount >= 0, "nestedPromptCounter should be greater than or equal to 0");

            if (NestedPromptCount == 0)
                return;

            try
            {
                _externalHostRef.Value.ExitNestedPrompt();
            }
            finally
            {
                ExitNestedPromptHelper();
            }
            ExitNestedPromptException enpe = new ExitNestedPromptException();
            throw enpe;
        }
Example #5
0
 public override void ExitNestedPrompt()
 {
     if (this.nestedPromptCount != 0)
     {
         try
         {
             this.externalHostRef.Value.ExitNestedPrompt();
         }
         finally
         {
             this.ExitNestedPromptHelper();
         }
         ExitNestedPromptException exception = new ExitNestedPromptException();
         throw exception;
     }
 }