# LavinMQContainerResource Properties

- Package: [CommunityToolkit.Aspire.Hosting.LavinMQ](/reference/api/csharp/communitytoolkit.aspire.hosting.lavinmq.md)
- Type: [LavinMQContainerResource](/reference/api/csharp/communitytoolkit.aspire.hosting.lavinmq/lavinmqcontainerresource.md)
- Kind: `Properties`
- Members: `5`

Represents a container resource for LavinMQ with configurable authentication parameters and connection endpoint details, implementing the IResourceWithConnectionString interface.

## ConnectionStringExpression

- Name: `ConnectionStringExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.LavinMQ/LavinMQContainerResource.cs#L48)

ConnectionString for the LavinMQ server in the form of amqp://guest:guest@host:port/.

```csharp
public ReferenceExpression ConnectionStringExpression { get; }
```

## Host

- Name: `Host`
- Modifiers: `get`
- Returns: `EndpointReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.LavinMQ/LavinMQContainerResource.cs#L33)

Gets the host endpoint reference for this resource.

```csharp
public EndpointReferenceExpression Host { get; }
```

## Port

- Name: `Port`
- Modifiers: `get`
- Returns: `EndpointReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.LavinMQ/LavinMQContainerResource.cs#L38)

Gets the port endpoint reference for this resource.

```csharp
public EndpointReferenceExpression Port { get; }
```

## PrimaryEndpoint

- Name: `PrimaryEndpoint`
- Modifiers: `get`
- Returns: `EndpointReference`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.LavinMQ/LavinMQContainerResource.cs#L28)

Gets the primary AMQP endpoint for the LavinMQ resource.

```csharp
public EndpointReference PrimaryEndpoint { get; }
```

## UriExpression

- Name: `UriExpression`
- Modifiers: `get`
- Returns: `ReferenceExpression`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.LavinMQ/LavinMQContainerResource.cs#L56)

Gets the connection URI expression for the LavinMQ server.

```csharp
public ReferenceExpression UriExpression { get; }
```

## Remarks

Format: `amqp://{user}:{password}@{host}:{port}/`.
