コード例 #1
0
ファイル: PowerShellHost.cs プロジェクト: hu19891110/NuGet
 public void Abort()
 {
     if (ExecutingPipeline != null)
     {
         ExecutingPipeline.StopAsync();
     }
     ComplexCommand.Clear();
 }
コード例 #2
0
 public void Abort()
 {
     ExecutingPipeline?.StopAsync();
     ComplexCommand.Clear();
     try
     {
         _tokenSource?.Cancel();
     }
     catch (ObjectDisposedException)
     {
         // ObjectDisposedException is expected here, since at clear console command, tokenSource
         // would have already been disposed.
     }
 }
コード例 #3
0
 public void Abort()
 {
     ExecutingPipeline?.StopAsync();
     ComplexCommand.Clear();
 }