DevTunnelsResourceBuilderExtensions
Class static net10.0
Provides extension methods for adding dev tunnels resources to an
Hosting.IDistributedApplicationBuilder. namespace Aspire.Hosting;
public static class DevTunnelsResourceBuilderExtensions{ // ...} 11 members
Methods11
Section titled MethodsAddDevTunnel(IDistributedApplicationBuilder, string, string?, DevTunnelOptions?)extensionIResourceBuilder<DevTunnelResource> Adds a dev tunnel resource to the application model.
GetEndpoint(IResourceBuilder<DevTunnelResource>, IResourceBuilder<TResource>, string)extensionEndpointReference Gets the tunnel endpoint reference for the specified target resource and endpoint.
GetEndpoint(IResourceBuilder<DevTunnelResource>, IResource, string)extensionEndpointReference Gets the tunnel endpoint reference for the specified target resource and endpoint.
GetEndpoint(IResourceBuilder<DevTunnelResource>, EndpointReference)extensionEndpointReference Gets the tunnel endpoint reference for the specified target endpoint.
WithAnonymousAccess(IResourceBuilder<DevTunnelResource>)extensionIResourceBuilder<DevTunnelResource> Allows the tunnel to be publicly accessed without authentication.
WithReference(IResourceBuilder<DevTunnelResource>, IResourceBuilder<TResource>, bool)extensionIResourceBuilder<DevTunnelResource> Adds ports on the dev tunnel for all endpoints found on the referenced resource and sets whether anonymous access is allowed.
WithReference(IResourceBuilder<DevTunnelResource>, IResourceBuilder<TResource>, DevTunnelPortOptions?)extensionIResourceBuilder<DevTunnelResource> Adds ports on the dev tunnel for all endpoints found on the referenced resource.
WithReference(IResourceBuilder<DevTunnelResource>, EndpointReference)extensionIResourceBuilder<DevTunnelResource> Exposes the specified endpoint via the dev tunnel.
WithReference(IResourceBuilder<DevTunnelResource>, EndpointReference, bool)extensionIResourceBuilder<DevTunnelResource> Exposes the specified endpoint via the dev tunnel and sets whether anonymous access is allowed.
WithReference(IResourceBuilder<DevTunnelResource>, EndpointReference, DevTunnelPortOptions?)extensionIResourceBuilder<DevTunnelResource> Exposes the specified endpoint via the dev tunnel.
WithReference(IResourceBuilder<TResource>, IResourceBuilder<IResourceWithEndpoints>, IResourceBuilder<DevTunnelResource>)extensionIResourceBuilder<TResource> Injects service discovery and endpoint information as environment variables from the dev tunnel resource into the destination resource, using the tunneled resource's name as the service name. Each endpoint defined on the target resource will be injected using the format defined by the
ApplicationModel.ReferenceEnvironmentInjectionAnnotation on the destination resource, i.e. either "services__{sourceResourceName}__{endpointName}__{endpointIndex}={uriString}" for .NET service discovery, or "{RESOURCE_ENDPOINT}={uri}" for endpoint injection.