Exemplo n.º 1
0
 /// <summary>
 /// Stop the test driver, and shutdown the sqltoolsservice executable
 /// </summary>
 public async Task Stop()
 {
     if (IsCoverageRun)
     {
         // Kill all the processes in the list
         foreach (Process p in serviceProcesses.Where(p => !p.HasExited))
         {
             p.Kill();
         }
         ServiceProcess?.WaitForExit();
     }
     else
     {
         await this.protocolClient.Stop();
     }
 }