# LogtoResource Constructors

- Package: [CommunityToolkit.Aspire.Hosting.Logto](/reference/api/csharp/communitytoolkit.aspire.hosting.logto.md)
- Type: [LogtoResource](/reference/api/csharp/communitytoolkit.aspire.hosting.logto/logtoresource.md)
- Kind: `Constructors`
- Members: `1`

Represents a containerized resource specific to Logto that extends the base functionality of container resources by providing additional endpoint and connection string management.

<a id="constructor"></a>
<a id="constructor-string"></a>

## LogtoResource(string)

- Name: `Constructor(string)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Logto/LogtoResource.cs#L15)

Represents a containerized resource specific to Logto that extends the base functionality of container resources by providing additional endpoint and connection string management.

```csharp
public sealed class LogtoResource
{
    public LogtoResource(
        string name)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)

## Remarks

This class is designed for use in an application hosting environment and incorporates a primary HTTP endpoint with predefined default port configurations.
