# NgrokEndpoint Constructors

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

Describes a ngrok endpoint.

## NgrokEndpoint(string, string?, IDictionary<string, string>)

- Name: `Constructor(string, string?, IDictionary<string, string>)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Ngrok/NgrokEndpoint.cs#L9)

Describes a ngrok endpoint.

```csharp
public record NgrokEndpoint
{
    public NgrokEndpoint(
        string EndpointName,
        string? Url,
        IDictionary<string, string>? Labels = null)
    {
        // ...
    }
}
```

## Parameters

- `EndpointName` (`string`)
  A unique name for this endpoint's configuration.
- `Url` (`string?`)
  The address you would like to use to forward traffic to your upstream service. Leave empty to get a randomly assigned address.
- `Labels` (`IDictionary<string, string>`) `optional`
  An optional dictionary of labels to apply to the endpoint.
