예제 #1
0
 /// <summary>
 /// 销毁当前Runner
 /// </summary>
 public virtual void Dispose()
 {
     _runnerInst = null;
     DesignTimeService?.Dispose();
     RuntimeService?.Dispose();
     EngineController?.Dispose();
     DataMaintainer?.Dispose();
     SequenceManager?.Dispose();
     ComInterfaceManager?.Dispose();
     ResultManager?.Dispose();
     ParameterChecker?.Dispose();
     LogService?.Dispose();
     ConfigurationManager?.Dispose();
 }
예제 #2
0
        /// <summary>
        /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
        /// </summary>
        public override void Dispose()
        {
            base.Dispose();

            if (EngineController != null)
            {
                EngineController.MessageLogged -= Log;
                EngineController.LibraryServices.LibraryLoaded -= LibraryLoaded;
                EngineController.Dispose();
            }

            if (pulseMaker == null)
            {
                return;
            }

            pulseMaker.Stop();
        }
        public void Dispose()
        {
            theController.Dispose();

            TestUtility.CleanUpHangingProcesses();
        }