DevTunnelPortResource
Class sealed net10.0
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.
namespace Aspire.Hosting.DevTunnels;
public sealed class DevTunnelPortResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithEndpoints, Aspire.Hosting.ApplicationModel.IResourceWithWaitSupport, Aspire.Hosting.IResourceWithServiceDiscovery{ // ...} ResourceIResourceIResourceWithEndpointsIResourceWithWaitSupportIResourceWithServiceDiscovery
Constructors1
Section titled ConstructorsDevTunnelPortResource(string, DevTunnelResource, EndpointReference, DevTunnelPortOptions?) Initializes a new instance of the
DevTunnelPortResource class, representing a single forwarded endpoint/port on a dev tunnel. Properties2
Section titled PropertiesDevTunnelget The dev tunnel this port belongs to.
Optionsget Options controlling how this port is exposed.