Aspire.Hosting.DevTunnels
Official
📦 Aspire.Hosting.DevTunnelsv17.0.0Import path
apphost/modules/aspire7Functions
1Types
1 types, 7 functions and 0 members
Handles
Functions
DevTunnelResource
method
GetTunnelEndpointGets the tunnel endpoint reference for the specified target endpoint.
GetTunnelEndpoint(targetEndpointReference EndpointReference) EndpointReferencemethod
WithAnonymousAccessbuilderAllows the tunnel to be publicly accessed without authentication.
WithAnonymousAccess() DevTunnelResourcemethod
WithExpirationbuilderConfigures how long the tunnel can remain unused or unmodified before it expires.
WithExpiration(expirationHours float64) DevTunnelResourcemethod
WithTunnelReferencebuilderExposes the specified endpoint via the dev tunnel.
WithTunnelReference(targetEndpoint EndpointReference) DevTunnelResourcemethod
WithTunnelReferenceAllbuilderAdds ports on the dev tunnel for all endpoints found on the referenced resource and sets whether anonymous access is allowed.
WithTunnelReferenceAll(resourceBuilder ResourceWithEndpoints, allowAnonymous bool) DevTunnelResourcemethod
WithTunnelReferenceAnonymousbuilderExposes the specified endpoint via the dev tunnel and sets whether anonymous access is allowed.
WithTunnelReferenceAnonymous(targetEndpoint EndpointReference, allowAnonymous bool) DevTunnelResource