Shell.NET40.cs 484 B

123456789101112131415161718
  1. using System;
  2. using System.Threading;
  3. using System.Threading.Tasks;
  4. namespace Renci.SshNet
  5. {
  6. /// <summary>
  7. /// Represents instance of the SSH shell object
  8. /// </summary>
  9. public partial class Shell
  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. }