2
0

ConnectingEventArgs.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace Renci.SshClient.Common
  6. {
  7. public class ConnectingEventArgs : EventArgs
  8. {
  9. public IDictionary<string, string> KeyExchangeAlgorithms { get; private set; }
  10. public IDictionary<string, string> Encryptions { get; private set; }
  11. public IDictionary<string, string> HmacAlgorithms { get; private set; }
  12. public IDictionary<string, string> HostKeyAlgorithms { get; private set; }
  13. public IDictionary<string, string> SupportedAuthenticationMethods { get; private set; }
  14. public IDictionary<string, string> CompressionAlgorithms { get; private set; }
  15. public string Host { get; set; }
  16. public int Port { get; set; }
  17. public string Username { get; set; }
  18. public string Password { get; set; }
  19. public ICollection<PrivateKeyFile> KeyFiles { get; set; }
  20. public TimeSpan Timeout { get; set; }
  21. public int RetryAttempts { get; set; }
  22. public int MaxSessions { get; set; }
  23. public ConnectingEventArgs(
  24. IDictionary<string, string> keyExchangeAlgorithms,
  25. IDictionary<string, string> encryptions,
  26. IDictionary<string, string> hmacAlgorithms,
  27. IDictionary<string, string> hostKeyAlgorithms,
  28. IDictionary<string, string> supportedAuthenticationMethods,
  29. IDictionary<string, string> compressionAlgorithms)
  30. {
  31. this.KeyExchangeAlgorithms = keyExchangeAlgorithms;
  32. this.Encryptions = encryptions;
  33. this.HmacAlgorithms = hmacAlgorithms;
  34. this.HostKeyAlgorithms = hostKeyAlgorithms;
  35. this.SupportedAuthenticationMethods = supportedAuthenticationMethods;
  36. this.CompressionAlgorithms = compressionAlgorithms;
  37. }
  38. }
  39. }