Share via


DevTunnelsResourceBuilderExtensions Class

Definition

Provides extension methods for adding dev tunnels resources to an IDistributedApplicationBuilder.

public static class DevTunnelsResourceBuilderExtensions
type DevTunnelsResourceBuilderExtensions = class
Public Module DevTunnelsResourceBuilderExtensions
Inheritance
DevTunnelsResourceBuilderExtensions

Methods

AddDevTunnel(IDistributedApplicationBuilder, String, String, DevTunnelOptions)

Adds a dev tunnel resource to the application model.

GetEndpoint(IResourceBuilder<DevTunnelResource>, EndpointReference)

Gets the tunnel endpoint reference for the specified target endpoint.

GetEndpoint(IResourceBuilder<DevTunnelResource>, IResource, String)

Gets the tunnel endpoint reference for the specified target resource and endpoint.

GetEndpoint<TResource>(IResourceBuilder<DevTunnelResource>, IResourceBuilder<TResource>, String)

Gets the tunnel endpoint reference for the specified target resource and endpoint.

WithAnonymousAccess(IResourceBuilder<DevTunnelResource>)

Allows the tunnel to be publicly accessed without authentication.

WithReference(IResourceBuilder<DevTunnelResource>, EndpointReference, Boolean)

Exposes the specified endpoint via the dev tunnel and sets whether anonymous access is allowed.

WithReference(IResourceBuilder<DevTunnelResource>, EndpointReference, DevTunnelPortOptions)

Exposes the specified endpoint via the dev tunnel.

WithReference(IResourceBuilder<DevTunnelResource>, EndpointReference)

Exposes the specified endpoint via the dev tunnel.

WithReference<TResource>(IResourceBuilder<DevTunnelResource>, IResourceBuilder<TResource>, Boolean)

Adds ports on the dev tunnel for all endpoints found on the referenced resource and sets whether anonymous access is allowed.

WithReference<TResource>(IResourceBuilder<DevTunnelResource>, IResourceBuilder<TResource>, DevTunnelPortOptions)

Adds ports on the dev tunnel for all endpoints found on the referenced resource.

WithReference<TResource>(IResourceBuilder<TResource>, IResourceBuilder<IResourceWithEndpoints>, IResourceBuilder<DevTunnelResource>)

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 ReferenceEnvironmentInjectionAnnotation on the destination resource, i.e. either "services__{sourceResourceName}{endpointName}{endpointIndex}={uriString}" for .NET service discovery, or "{RESOURCE_ENDPOINT}={uri}" for endpoint injection.

Applies to