# 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: `4`

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/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.LavinMQ/LavinMQContainerResource.cs#L41)

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/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.LavinMQ/LavinMQContainerResource.cs#L26)

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/67afcca30f02c18687f9c5219313710af9706630/src/CommunityToolkit.Aspire.Hosting.LavinMQ/LavinMQContainerResource.cs#L31)

Gets the port endpoint reference for this resource.

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

## UriExpression

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

Gets the connection URI expression for the LavinMQ server.

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

## Remarks

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