Skip to content
Docs Try Aspire
Docs Try

LavinMQContainerResource

Handle
📦 CommunityToolkit.Aspire.Hosting.LavinMQ v13.4.0
interface LavinMQContainerResource
extends IComputeResource,
IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithArgs,
IResourceWithConnectionString,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly host: EndpointReferenceExpression;
readonly port: EndpointReferenceExpression;
readonly primaryEndpoint: EndpointReference;
readonly uriExpression: ReferenceExpression;
withDataBindMount(
source: string,
isReadOnly?: boolean): LavinMQContainerResource;
withDataVolume(
name: string,
isReadOnly?: boolean): LavinMQContainerResource;
}

Properties

property connectionStringExpression ReferenceExpression get
ConnectionString for the LavinMQ server in the form of amqp://guest:guest@host:port/.
property host EndpointReferenceExpression get
Gets the host endpoint reference for this resource.
property port EndpointReferenceExpression get
Gets the port endpoint reference for this resource.
property primaryEndpoint EndpointReference get
Gets the primary AMQP endpoint for the LavinMQ resource.
property uriExpression ReferenceExpression get
Gets the connection URI expression for the LavinMQ server.

Methods

method withDataBindMount builder
Configures a bind mount for the LavinMQ container resource to allow data persistence. The method mounts a specified source path on the host to the container's data directory.
withDataBindMount(
source: string,
isReadOnly?: boolean): LavinMQContainerResource
source string
isReadOnly boolean optional = False
LavinMQContainerResource
method withDataVolume builder
Configures a data volume for the LavinMQ container resource by specifying its name and read-only status.
withDataVolume(
name: string,
isReadOnly?: boolean): LavinMQContainerResource
name string
isReadOnly boolean optional = False
LavinMQContainerResource