Skip to content
DocsTry Aspire
DocsTry

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

Applies to

This method applies to the following types: