using System;
namespace Renci.SshNet.Common
{
///
/// Provides data for event.
///
public class PortForwardEventArgs : EventArgs
{
///
/// Gets request originator host.
///
public string OriginatorHost { get; private set; }
///
/// Gets request originator port.
///
public uint OriginatorPort { get; private set; }
///
/// 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 == null)
throw new ArgumentNullException("host");
port.ValidatePort("port");
OriginatorHost = host;
OriginatorPort = port;
}
}
}