# NgrokEndpointAnnotation Constructors

- Package: [CommunityToolkit.Aspire.Hosting.Ngrok](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok.md)
- Type: [NgrokEndpointAnnotation](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpointannotation.md)
- Kind: `Constructors`
- Members: `1`

Represents a ngrok endpoint annotation for an existing resource with endpoints.

## NgrokEndpointAnnotation(IResourceWithEndpoints)

- Name: `Constructor(IResourceWithEndpoints)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Ngrok/NgrokEndpointAnnotation.cs#L7-L12)

Represents a ngrok endpoint annotation for an existing resource with endpoints.

```csharp
public record NgrokEndpointAnnotation
{
    public NgrokEndpointAnnotation(
        IResourceWithEndpoints Resource)
    {
        // ...
    }
}
```

## Parameters

- `Resource` (`IResourceWithEndpoints`)
  The resource with endpoints to tunnel.
