<PackageReference Include="SSH.NET" Version="2013.1.27" />

ForwardedPortDynamic

Provides functionality for dynamic port forwarding
public string BoundHost { get; protected set; }

Gets the bound host.

public uint BoundPort { get; protected set; }

Gets the bound port.

public ForwardedPortDynamic(uint port)

Initializes a new instance of the ForwardedPortDynamic class.

public ForwardedPortDynamic(string host, uint port)

Initializes a new instance of the ForwardedPortDynamic class.

public void Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged ResourceMessages.

protected virtual void Dispose(bool disposing)

Releases unmanaged and - optionally - managed resources