SshCommand.NET40.cs 490 B

123456789101112131415161718
  1. using System;
  2. using System.Threading;
  3. using System.Threading.Tasks;
  4. namespace Renci.SshNet
  5. {
  6. /// <summary>
  7. /// Represents SSH command that can be executed.
  8. /// </summary>
  9. public partial class SshCommand
  10. {
  11. /// <exception cref="ArgumentNullException"><paramref name=" action"/> is null.</exception>
  12. partial void ExecuteThread(Action action)
  13. {
  14. ThreadPool.QueueUserWorkItem((o) => { action(); });
  15. }
  16. }
  17. }