示例#1
0
 public void Dispose()
 {
     Watch.Stop();
     ProcessManager.Dispose();
     TaskManager.Dispose();
     ourContext?.Dispose();
     Logger.Trace($"STOP {TestName} :{Watch.ElapsedMilliseconds}ms");
 }
示例#2
0
 protected virtual void Dispose(bool disposing)
 {
     if (!_disposedValue)
     {
         if (disposing)
         {
             _processManager.Dispose();
         }
         _disposedValue = true;
     }
 }
示例#3
0
        public void Dispose()
        {
            Watch.Stop();
#if NUNIT
            try
            {
                if (HttpServer != null)
                {
                    HttpServer.Stop();
                }
            }
            catch { }
#endif

            ProcessManager.Dispose();
            if (SynchronizationContext.Current is IMainThreadSynchronizationContext ourContext)
            {
                ourContext.Dispose();
            }

            TaskManager.Dispose();
            Logger.Trace($"STOP {TestName} :{Watch.ElapsedMilliseconds}ms");
        }
示例#4
0
		public void Dispose() {
			_processManager.Dispose();
		}