Esempio n. 1
0
 /// <summary>
 /// Terminate the result thread and apply any required exit procedures.
 /// Save orders log files to disk.
 /// </summary>
 public override void Exit()
 {
     base.Exit();
     lock (_sync)
     {
         if (_writer != null)
         {
             var end   = DateTime.UtcNow;
             var delta = end - _testStartTime;
             _writer.WriteLine($"{end}: Completed regression test, took: {delta.TotalSeconds:0.0} seconds");
             _writer.DisposeSafely();
             _writer = null;
         }
     }
 }