Share via


DevTunnelPortResource Constructor

Definition

Initializes a new instance of the DevTunnelPortResource class, representing a single forwarded endpoint/port on a dev tunnel.

public DevTunnelPortResource(string name, Aspire.Hosting.DevTunnels.DevTunnelResource tunnel, Aspire.Hosting.ApplicationModel.EndpointReference targetEndpoint, Aspire.Hosting.DevTunnels.DevTunnelPortOptions? options = default);
new Aspire.Hosting.DevTunnels.DevTunnelPortResource : string * Aspire.Hosting.DevTunnels.DevTunnelResource * Aspire.Hosting.ApplicationModel.EndpointReference * Aspire.Hosting.DevTunnels.DevTunnelPortOptions -> Aspire.Hosting.DevTunnels.DevTunnelPortResource
Public Sub New (name As String, tunnel As DevTunnelResource, targetEndpoint As EndpointReference, Optional options As DevTunnelPortOptions = Nothing)

Parameters

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

Options controlling how this port is exposed.

Applies to