# NgrokEndpoint

- Kind: `record`
- Package: [CommunityToolkit.Aspire.Hosting.Ngrok](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Ngrok/NgrokEndpoint.cs)
- Implements: `IEquatable<NgrokEndpoint>`

Describes a ngrok endpoint.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed record NgrokEndpoint
    : System.IEquatable<Aspire.Hosting.ApplicationModel.NgrokEndpoint>
{
    // ...
}
```

## Constructors

- [NgrokEndpoint(string, string?, IDictionary<string, string>)](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint/constructors.md#constructor-string-string-idictionary-string-string) -- Describes a ngrok endpoint.

## Properties

- [EndpointName](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint/properties.md#endpointname) : `string` `get; init` -- A unique name for this endpoint's configuration.
- [Labels](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint/properties.md#labels) : `IDictionary<string, string>` `get; init` -- An optional dictionary of labels to apply to the endpoint.
- [Url](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint/properties.md#url) : `string?` `get; init` -- The address you would like to use to forward traffic to your upstream service. Leave empty to get a randomly assigned address.

## Methods

- [<Clone>$](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint/methods.md#clone) : [NgrokEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint.md)
- [Deconstruct(string, string?, IDictionary<string, string>)](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint/methods.md#deconstruct-string-string-idictionary-string-string)
- [Equals(object?)](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint/methods.md#equals-object) : `bool` -- Determines whether the specified object is equal to the current object.
- [Equals(NgrokEndpoint?)](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint/methods.md#equals-ngrokendpoint) : `bool` -- Indicates whether the current object is equal to another object of the same type.
- [GetHashCode](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint/methods.md#gethashcode) : `int` -- Serves as the default hash function.
- [op_Equality(NgrokEndpoint?, NgrokEndpoint?)](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint/methods.md#op-equality-ngrokendpoint-ngrokendpoint) : `bool` `static`
- [op_Inequality(NgrokEndpoint?, NgrokEndpoint?)](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint/methods.md#op-inequality-ngrokendpoint-ngrokendpoint) : `bool` `static`
- [ToString](/reference/api/csharp/communitytoolkit.aspire.hosting.ngrok/ngrokendpoint/methods.md#tostring) : `string` -- Returns a string that represents the current object.
