PasswordAuthenticationMethod.NET40.cs 614 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading;
  6. using Renci.SshNet.Common;
  7. using Renci.SshNet.Messages.Authentication;
  8. using Renci.SshNet.Messages;
  9. using System.Threading.Tasks;
  10. namespace Renci.SshNet
  11. {
  12. public partial class PasswordAuthenticationMethod : AuthenticationMethod
  13. {
  14. /// <exception cref="ArgumentNullException"><paramref name="action"/> is null.</exception>
  15. partial void ExecuteThread(Action action)
  16. {
  17. ThreadPool.QueueUserWorkItem((o) => { action(); });
  18. }
  19. }
  20. }