Skip to content
DocsTry Aspire
DocsTry

DevTunnelResource.withTunnelReferenceAnonymous

Method
📦 Aspire.Hosting.DevTunnels v13.4.0
interface DevTunnelResource {
// ... omitted for brevity
withTunnelReferenceAnonymous(
targetEndpoint: EndpointReference,
allowAnonymous: boolean): DevTunnelResource;
}

Signature

methodwithTunnelReferenceAnonymousbuilder
Exposes the specified endpoint via the dev tunnel and sets whether anonymous access is allowed.
withTunnelReferenceAnonymous(
targetEndpoint: EndpointReference,
allowAnonymous: boolean): DevTunnelResource
targetEndpointEndpointReference
allowAnonymousboolean
DevTunnelResource

Defined on

This method is defined on the following type: