# LogtoConnectionStringHelper

- Kind: `class`
- Package: [CommunityToolkit.Aspire.Logto.Client](/reference/api/csharp/communitytoolkit.aspire.logto.client.md)
- Version: `13.4.1-beta.706`
- Namespace: `CommunityToolkit.Aspire.Logto.Client`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d479e13473b1d29d06b974f144a0049289a3cb5c/src/CommunityToolkit.Aspire.Logto.Client/LogtoConnectionStringHelper.cs)

Provides utility methods for extracting and validating endpoint information from connection strings in various formats. This helper is specifically designed to assist with parsing connection strings for use with the Logto client configuration.

## Definition

```csharp
namespace CommunityToolkit.Aspire.Logto.Client;

public static class LogtoConnectionStringHelper
{
    // ...
}
```

## Methods

- [GetEndpointFromConnectionString(string?)](/reference/api/csharp/communitytoolkit.aspire.logto.client/logtoconnectionstringhelper/methods.md#getendpointfromconnectionstring-string) : `string?` `static` -- Retrieves the endpoint value from a given connection string. If the connection string is a valid URI, the method returns the URI as a string. If the connection string is in a key-value pair format, it extracts the value of the "Endpoint" key if present and validates it as a URI.
