# LogtoResource

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Hosting.Logto](/reference/api/csharp/communitytoolkit.aspire.hosting.logto.md)
- Version: `13.4.1-beta.706`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Hosting.Logto/LogtoResource.cs)
- Inherits: `ContainerResource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IValueProvider`, `IValueWithReferences`

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

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class LogtoResource
    : Aspire.Hosting.ApplicationModel.ContainerResource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences
{
    // ...
}
```

## ATS metadata

### ATS export

- Type ID: `CommunityToolkit.Aspire.Hosting.Logto/LogtoResource`
- Public instance properties are exported as ATS capabilities.

## Remarks

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

## Constructors

- [LogtoResource(string)](/reference/api/csharp/communitytoolkit.aspire.hosting.logto/logtoresource/constructors.md#constructor-string) -- Represents a containerized resource specific to Logto that extends the base functionality of container resources by providing additional endpoint and connection string management.

## Properties

- [ConnectionStringExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.logto/logtoresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get`
- [Host](/reference/api/csharp/communitytoolkit.aspire.hosting.logto/logtoresource/properties.md#host) : `EndpointReferenceExpression` `get`
- [Port](/reference/api/csharp/communitytoolkit.aspire.hosting.logto/logtoresource/properties.md#port) : `EndpointReferenceExpression` `get`
- [PrimaryEndpoint](/reference/api/csharp/communitytoolkit.aspire.hosting.logto/logtoresource/properties.md#primaryendpoint) : `EndpointReference` `get`
- [UriExpression](/reference/api/csharp/communitytoolkit.aspire.hosting.logto/logtoresource/properties.md#uriexpression) : `ReferenceExpression` `get` -- Gets the connection URI expression for the Logto container resource.
