ShellStream.NET40.cs 451 B

1234567891011121314151617
  1. using System;
  2. using System.Threading;
  3. namespace Renci.SshNet
  4. {
  5. /// <summary>
  6. /// Represents instance of the SSH shell object
  7. /// </summary>
  8. public partial class ShellStream
  9. {
  10. /// <exception cref="ArgumentNullException"><paramref name=" action"/> is null.</exception>
  11. partial void ExecuteThread(Action action)
  12. {
  13. ThreadPool.QueueUserWorkItem(o => action());
  14. }
  15. }
  16. }