Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithEndpointProxySupport

Method
📦 Aspire.Hosting v17.0.0
func (ResourceWithEndpoints) WithEndpointProxySupport(proxyEnabled bool) ResourceWithEndpoints

Signature

methodWithEndpointProxySupportbuilder
Set whether a resource can use proxied endpoints or whether they should be disabled for all endpoints belonging to the resource. If set to false, endpoints belonging to the resource will ignore the configured proxy settings and run proxy-less.
WithEndpointProxySupport(proxyEnabled bool) ResourceWithEndpoints
proxyEnabledboolShould endpoints for the resource support using a proxy?
ResourceWithEndpoints

The resource builder.

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

Applies to

This method applies to the following types: