/// <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(); }
/// <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(); }