# LavinMQContainerResource Constructors

- 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: `Constructors`
- Members: `1`

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

## LavinMQContainerResource(string)

- Name: `Constructor(string)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.LavinMQ/LavinMQContainerResource.cs#L12)

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

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

## Parameters

- `name` (`string`)
  The name of the LavinMQ resource instance.
