Skip to content
Docs Try Aspire
Docs Try

withTunnelReferenceAnonymous

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

Signature

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

Applies to

This method applies to the following types: