DevTunnelsResourceBuilderExtensions
Classstaticnet10.0
Provides extension methods for adding dev tunnels resources to an
Hosting.IDistributedApplicationBuilder. namespace Aspire.Hosting;
public static class DevTunnelsResourceBuilderExtensions{ // ...}12 members
Methods12
Section titled MethodsAddDevTunnel(IDistributedApplicationBuilder, string, string?, DevTunnelOptions?)extensionats ignoredIResourceBuilder<DevTunnelResource> Adds a dev tunnel resource to the application model.
GetEndpoint(IResourceBuilder<DevTunnelResource>, IResourceBuilder<TResource>, string)extensionats ignoredEndpointReference Gets the tunnel endpoint reference for the specified target resource and endpoint.
EndpointReference Gets the tunnel endpoint reference for the specified target resource and endpoint.
EndpointReference Gets the tunnel endpoint reference for the specified target endpoint.
IResourceBuilder<DevTunnelResource> Allows the tunnel to be publicly accessed without authentication.
IResourceBuilder<DevTunnelResource> Configures how long the tunnel can remain unused or unmodified before it expires.
WithReference(IResourceBuilder<DevTunnelResource>, IResourceBuilder<TResource>, bool)extensionats exportIResourceBuilder<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?)extensionats ignoredIResourceBuilder<DevTunnelResource> Adds ports on the dev tunnel for all endpoints found on the referenced resource.
IResourceBuilder<DevTunnelResource> Exposes the specified endpoint via the dev tunnel.
IResourceBuilder<DevTunnelResource> Exposes the specified endpoint via the dev tunnel and sets whether anonymous access is allowed.
WithReference(IResourceBuilder<DevTunnelResource>, EndpointReference, DevTunnelPortOptions?)extensionats ignoredIResourceBuilder<DevTunnelResource> Exposes the specified endpoint via the dev tunnel.
WithReference(IResourceBuilder<TResource>, IResourceBuilder<IResourceWithEndpoints>, IResourceBuilder<DevTunnelResource>)extensionats ignoredIResourceBuilder<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}__{endpointScheme}__{endpointIndex}={uriString}" for .NET service discovery, or "{RESOURCE_ENDPOINT}={uri}" for endpoint injection.