Skip to content
Docs Try Aspire

DevTunnelPortResource Constructors

Class Constructors 1 member
A resource representing a single forwarded endpoint/port on a dev tunnel. Contains an endpoint that resolves to the public tunnel URL of this port.
Constructor(string, DevTunnelResource, EndpointReference, DevTunnelPortOptions?) Section titled Constructor(string, DevTunnelResource, EndpointReference, DevTunnelPortOptions?)
Initializes a new instance of the DevTunnelPortResource class, representing a single forwarded endpoint/port on a dev tunnel.
public sealed class DevTunnelPortResource
{
public DevTunnelPortResource(
string name,
DevTunnelResource tunnel,
EndpointReference targetEndpoint,
DevTunnelPortOptions? options = null)
{
// ...
}
}
name string The name of the port resource.
tunnel DevTunnelResource The parent DevTunnelResource this port belongs to.
targetEndpoint EndpointReference The endpoint to be forwarded through the tunnel.
options DevTunnelPortOptions? optional Options controlling how this port is exposed.