DevTunnelPortResource Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.