SshCommand.NET40.cs 528 B

1234567891011121314151617181920
  1. using System;
  2. using System.Threading;
  3. namespace Renci.SshNet
  4. {
  5. /// <summary>
  6. /// Represents SSH command that can be executed.
  7. /// </summary>
  8. public partial class SshCommand
  9. {
  10. /// <summary>
  11. /// Executes the specified action in a separate thread.
  12. /// </summary>
  13. /// <param name="action">The action to execute.</param>
  14. partial void ExecuteThread(Action action)
  15. {
  16. ThreadPool.QueueUserWorkItem(o => action());
  17. }
  18. }
  19. }