using System; using System.Net; namespace Renci.SshNet.Common { /// /// Provides data for event. /// public class PortForwardEventArgs : EventArgs { /// /// Initializes a new instance of the class. /// /// The host. /// The port. /// is null. /// is not within and . internal PortForwardEventArgs(string host, uint port) { if (host is null) { throw new ArgumentNullException(nameof(host)); } port.ValidatePort("port"); OriginatorHost = host; OriginatorPort = port; } /// /// Gets request originator host. /// public string OriginatorHost { get; } /// /// Gets request originator port. /// public uint OriginatorPort { get; } } }