# DevTunnelResource

- Kind: `class`
- Package: [Aspire.Hosting.DevTunnels](/reference/api/csharp/aspire.hosting.devtunnels.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.DevTunnels`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.DevTunnels/DevTunnelResource.cs)
- Inherits: `ExecutableResource`

A resource representing a persistent dev tunnel that runs for the life of the AppHost.

## Definition

```csharp
namespace Aspire.Hosting.DevTunnels;

public sealed class DevTunnelResource
    : Aspire.Hosting.ApplicationModel.ExecutableResource
{
    // ...
}
```

## Constructors

- [DevTunnelResource(string, string, string, string, DevTunnelOptions?)](/reference/api/csharp/aspire.hosting.devtunnels/devtunnelresource/constructors.md#constructor-string-string-string-string-devtunneloptions) -- A resource representing a persistent dev tunnel that runs for the life of the AppHost.

## Properties

- [Options](/reference/api/csharp/aspire.hosting.devtunnels/devtunnelresource/properties.md#options) : [DevTunnelOptions](/reference/api/csharp/aspire.hosting.devtunnels/devtunneloptions.md) `get` -- Options controlling how this tunnel is created and managed.
- [TunnelId](/reference/api/csharp/aspire.hosting.devtunnels/devtunnelresource/properties.md#tunnelid) : `string` `get; init` -- The unique ID for the dev tunnel.
