DevTunnelResource.WithTunnelReferenceAnonymous

Method
📦 Aspire.Hosting.DevTunnels v17.0.0
type DevTunnelResource interface {
// ... omitted for brevity
WithTunnelReferenceAnonymous(
targetEndpoint EndpointReference,
allowAnonymous bool,
) DevTunnelResource
}

Signature

methodWithTunnelReferenceAnonymousbuilder
Exposes the specified endpoint via the dev tunnel and sets whether anonymous access is allowed.
WithTunnelReferenceAnonymous(
targetEndpoint EndpointReference,
allowAnonymous bool,
) DevTunnelResource
targetEndpointEndpointReferenceThe endpoint to expose via the dev tunnel.
allowAnonymousboolWhether anonymous access is allowed.
DevTunnelResource

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: