コード例 #1
0
        /// <summary>
        /// Waits for the ApplicationMonitor to Abort and Closes any remaining
        /// processes
        /// </summary>
        /// <returns>true</returns>
        protected override bool EndStep()
        {
            //Wait for the application to be done
            appMonitor.WaitForUIHandlerAbort();
            appMonitor.Close();

            // close the fileHost if one was created within ActivationStep.
            // Don't close if the filehost is in the context of a FileHostStep
            if ((fileHost != null) && (SupportFiles.Length > 0))
            {
                fileHost.Close();
            }

            if (hostingPolicyResetter != null)
            {
                hostingPolicyResetter.Dispose();
                hostingPolicyResetter = null;
            }

            return(true);
        }
コード例 #2
0
 /// <summary>
 /// Closes the TestLog
 /// </summary>
 /// <returns>true</returns>
 protected override bool EndStep()
 {
     fileHost.Close();
     return(true);
 }