using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Renci.SshClient.Common { public class ConnectingEventArgs : EventArgs { public IDictionary KeyExchangeAlgorithms { get; private set; } public IDictionary Encryptions { get; private set; } public IDictionary HmacAlgorithms { get; private set; } public IDictionary HostKeyAlgorithms { get; private set; } public IDictionary SupportedAuthenticationMethods { get; private set; } public IDictionary CompressionAlgorithms { get; private set; } public string Host { get; set; } public int Port { get; set; } public string Username { get; set; } public string Password { get; set; } public ICollection KeyFiles { get; set; } public TimeSpan Timeout { get; set; } public int RetryAttempts { get; set; } public int MaxSessions { get; set; } public ConnectingEventArgs( IDictionary keyExchangeAlgorithms, IDictionary encryptions, IDictionary hmacAlgorithms, IDictionary hostKeyAlgorithms, IDictionary supportedAuthenticationMethods, IDictionary compressionAlgorithms) { this.KeyExchangeAlgorithms = keyExchangeAlgorithms; this.Encryptions = encryptions; this.HmacAlgorithms = hmacAlgorithms; this.HostKeyAlgorithms = hostKeyAlgorithms; this.SupportedAuthenticationMethods = supportedAuthenticationMethods; this.CompressionAlgorithms = compressionAlgorithms; } } }